aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-26 09:39:47 +0100
committerChocobozzz <me@florianbigard.com>2021-02-26 09:39:47 +0100
commitcb2e36618ca5986949d4326ea939b5b08f3a9a82 (patch)
tree44e8af1c2d286278e6ad7a3f0d687dd81638d5b6 /client
parent494df940364b98730ae06ed08e94e5742b40a4d2 (diff)
downloadPeerTube-cb2e36618ca5986949d4326ea939b5b08f3a9a82.tar.gz
PeerTube-cb2e36618ca5986949d4326ea939b5b08f3a9a82.tar.zst
PeerTube-cb2e36618ca5986949d4326ea939b5b08f3a9a82.zip
Fix updating boolean anonymous settings
Diffstat (limited to 'client')
-rw-r--r--client/src/app/core/users/user.service.ts2
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 }