diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-26 09:39:47 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-26 09:39:47 +0100 |
commit | cb2e36618ca5986949d4326ea939b5b08f3a9a82 (patch) | |
tree | 44e8af1c2d286278e6ad7a3f0d687dd81638d5b6 | |
parent | 494df940364b98730ae06ed08e94e5742b40a4d2 (diff) | |
download | PeerTube-cb2e36618ca5986949d4326ea939b5b08f3a9a82.tar.gz PeerTube-cb2e36618ca5986949d4326ea939b5b08f3a9a82.tar.zst PeerTube-cb2e36618ca5986949d4326ea939b5b08f3a9a82.zip |
Fix updating boolean anonymous settings
-rw-r--r-- | client/src/app/core/users/user.service.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
92 | 92 | ||
93 | for (const [ key, value ] of obj) { | 93 | for (const [ key, value ] of obj) { |
94 | try { | 94 | try { |
95 | if (!value) { | 95 | if (value === undefined) { |
96 | this.localStorageService.removeItem(key) | 96 | this.localStorageService.removeItem(key) |
97 | continue | 97 | continue |
98 | } | 98 | } |