aboutsummaryrefslogtreecommitdiff
path: root/src/client/DocServer.ts
diff options
context:
space:
mode:
authoreperelm2 <emily_perelman@brown.edu>2023-07-31 11:24:59 -0400
committereperelm2 <emily_perelman@brown.edu>2023-07-31 11:24:59 -0400
commitad9e20dbd54658a891e6f7180d65ebf456665a15 (patch)
tree223e74b4da1927b49e8afd9f162a9b4d18e4e873 /src/client/DocServer.ts
parent9447ee01d501b3db69358b5b1526e640f2c54531 (diff)
parenta7fc6873a6a9faa7a2080bb0e689c3fa46bd2f7b (diff)
Merge branch 'master' into secondpropertiesmenu-emily
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r--src/client/DocServer.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts
index ba59a9f50..ad5a73598 100644
--- a/src/client/DocServer.ts
+++ b/src/client/DocServer.ts
@@ -49,7 +49,8 @@ export namespace DocServer {
}
const filtered = Array.from(Object.keys(_cache)).filter(key => {
const doc = _cache[key] as Doc;
- if (!(StrCast(doc.author).includes('.edu') || StrCast(doc.author).includes('.com')) || doc.author == Doc.CurrentUserEmail) return true;
+ return true;
+ if (!(StrCast(doc.author).includes('.edu') || StrCast(doc.author).includes('.com')) || doc.author === Doc.CurrentUserEmail) return true;
return false;
});
if (filtered.length === lastCacheUpdate) return;