Skip to content

Commit

Permalink
fix: Default to false when mapSelector.leaderboardsOpen doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Panzerhandschuh committed Nov 29, 2024
1 parent 4d4b518 commit 82173f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pages/map-selector/map-selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 82173f7

Please sign in to comment.