From a6ccf8e0ffde16db954e0aa7f3888060d3b12364 Mon Sep 17 00:00:00 2001 From: Razzmatazz Date: Thu, 4 Apr 2024 12:37:43 -0500 Subject: [PATCH] changes necessary to show GZ 21+ --- src/components/menu/index.js | 4 +--- src/data/maps.json | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/menu/index.js b/src/components/menu/index.js index 453ebb394..2a4ed3f26 100644 --- a/src/components/menu/index.js +++ b/src/components/menu/index.js @@ -54,11 +54,9 @@ const Menu = () => { const [open, setOpen] = useStateWithLocalStorage(alertConfig.bannerKey, true); const uniqueMaps = useMapImagesSortedArray(); - let mapCurrent = ''; for (const map of uniqueMaps) { - if (map.normalizedName !== mapCurrent) { + if (mapIcons[map.normalizedName]) { map.icon = mapIcons[map.normalizedName]; - mapCurrent = map.normalizedName; } else { map.menuPadding = true; diff --git a/src/data/maps.json b/src/data/maps.json index 693fd3cae..977c5b837 100644 --- a/src/data/maps.json +++ b/src/data/maps.json @@ -326,6 +326,7 @@ "maps": [ { "key": "ground-zero", + "altMaps": ["ground-zero-21"], "projection": "interactive", "tileSize": 256, "minZoom": 1,