Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Changes following review #2
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Dec 2, 2020
1 parent 84e123a commit 77b27a2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export class LocalStorageService {
* Make a key used by local storage that relates to a section of the user's settings in the console's store
*/
private static makeKey(userId: string, storeKey: LocalStorageSyncTypes) {
if (storeKey === LocalStorageSyncTypes.DASHBOARD) {
// Legacy support for when we only stored dashboard
return userId;
}
return userId + '-' + storeKey;
}

Expand Down

0 comments on commit 77b27a2

Please sign in to comment.