File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,13 @@ function Landmarks() {
221
221
if ( labelLower . includes ( 'landmark' ) ) {
222
222
hasLandmarkInLabel . push ( key ) ;
223
223
}
224
+
225
+ // also check if it's a landmark type
226
+ landmarksTypesArray . forEach ( ( landmark ) => {
227
+ if ( labelLower . includes ( landmark ) ) {
228
+ hasLandmarkInLabel . push ( key ) ;
229
+ }
230
+ } ) ;
224
231
} ) ;
225
232
226
233
setHasLandmarkWord ( hasLandmarkInLabel ) ;
@@ -320,7 +327,7 @@ function Landmarks() {
320
327
< Alert
321
328
icon = { < SvgWarning /> }
322
329
style = { { padding : 0 } }
323
- text = { `Remove the word "landmark" as it is already included in the landmark type .` }
330
+ text = { `Remove the word "landmark" or the landmark type name, as it is already included in the landmark label .` }
324
331
type = "warning"
325
332
/>
326
333
< div className = "spacer1" />
You can’t perform that action at this time.
0 commit comments