Skip to content

Commit

Permalink
fix streets storage handling
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswhong committed Jan 31, 2024
1 parent 18c41f2 commit f578d07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ module.exports = function (context, readonly) {
);

const projection = context.storage.get('projection') || DEFAULT_PROJECTION;
const activeStyle = context.storage.get('style') || DEFAULT_STYLE;
let activeStyle = context.storage.get('style') || DEFAULT_STYLE;

// handle previous users who had Streets selected
if (activeStyle === 'Streets') {
activeStyle === 'Standard';
activeStyle = 'Standard';
}

const { style } = styles.find((d) => d.title === activeStyle);
Expand Down

0 comments on commit f578d07

Please sign in to comment.