From cb2e36618ca5986949d4326ea939b5b08f3a9a82 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Feb 2021 09:39:47 +0100 Subject: Fix updating boolean anonymous settings --- client/src/app/core/users/user.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/src/app/core/users/user.service.ts b/client/src/app/core/users/user.service.ts index 16ea8aa1a..33cc1f668 100644 --- a/client/src/app/core/users/user.service.ts +++ b/client/src/app/core/users/user.service.ts @@ -92,7 +92,7 @@ export class UserService { for (const [ key, value ] of obj) { try { - if (!value) { + if (value === undefined) { this.localStorageService.removeItem(key) continue } -- cgit v1.2.3