From c7bbb322a27870b4ea44ac02e237c76443e7d327 Mon Sep 17 00:00:00 2001 From: Panzer Date: Fri, 29 Nov 2024 10:12:37 -0700 Subject: [PATCH] fix: Default to false when mapSelector.leaderboardsOpen doesn't exist --- scripts/pages/map-selector/map-selector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pages/map-selector/map-selector.ts b/scripts/pages/map-selector/map-selector.ts index ccef1357..748efe7d 100644 --- a/scripts/pages/map-selector/map-selector.ts +++ b/scripts/pages/map-selector/map-selector.ts @@ -156,7 +156,7 @@ class MapSelectorHandler implements OnPanelLoad { this.panels.cp.applyFilters(false); this.panels.leaderboardContainer.SetHasClass( 'mapselector-leaderboards--open', - $.persistentStorage.getItem('mapSelector.leaderboardsOpen') + $.persistentStorage.getItem('mapSelector.leaderboardsOpen') ?? false ); $.DispatchEvent('MapSelector_OnLoaded');