diff --git a/src/gis/components/MapStyleSwitcher.js b/src/gis/components/MapStyleSwitcher.js index d4a84986e8..2f29c9e041 100644 --- a/src/gis/components/MapStyleSwitcher.js +++ b/src/gis/components/MapStyleSwitcher.js @@ -59,11 +59,11 @@ const MapStyleSwitcher = props => { const changeStylePartial = useCallback( newStyle => () => { - if (newStyle.title === styleName) { + if (newStyle.titleKey === styleName) { handleClose(); return; } - setStyleName(newStyle.title); + setStyleName(newStyle.titleKey); changeStyle(newStyle.data); handleClose(); },