Skip to content

Commit

Permalink
fix: do not save null values to LocalStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
domiSchenk committed Sep 16, 2021
1 parent 0bbd614 commit be7d7ef
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/app/shared/functions/decorators/localstorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export function LocalStorage(key: string) {
};

const setter = function (newVal: string) {
console.log(`TCL: ~ file: localstorage.ts ~ line 13 ~ setter ~ newVal`, newVal);
newVal = newVal ? newVal : '';
localStorage.setItem(key, newVal);
};
Expand Down

0 comments on commit be7d7ef

Please sign in to comment.