Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

lint: Fix TypeScript linter error in localstorage.ts.

Tim Abbott28f86057d639
diff --git a/web/src/localstorage.ts b/web/src/localstorage.ts
index 39ced484418..4cfacef0c87 100644
--- a/web/src/localstorage.ts
+++ b/web/src/localstorage.ts
@@ -140,7 +140,7 @@ const ls = {
const old = this.getData(v1, name);
this.removeData(v1, name);
- if (old && old.__valid) {
+ if (old?.__valid) {
const data = callback(old.data);
this.setData(v2, name, data, Number.POSITIVE_INFINITY);