From be7d7ef1a2409c1d497737a0a9e8fe7fc4ced42b Mon Sep 17 00:00:00 2001 From: Dominik Schenk Date: Fri, 17 Sep 2021 00:11:12 +0200 Subject: [PATCH] fix: do not save null values to LocalStorage --- src/app/shared/functions/decorators/localstorage.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/shared/functions/decorators/localstorage.ts b/src/app/shared/functions/decorators/localstorage.ts index ef9e5b1..46201fb 100644 --- a/src/app/shared/functions/decorators/localstorage.ts +++ b/src/app/shared/functions/decorators/localstorage.ts @@ -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); };