diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2023-07-31 11:24:50 -0400 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2023-07-31 11:24:50 -0400 |
commit | 71c3072bb253682ed16861de24bcb141ccf7f79e (patch) | |
tree | a9ae65c5ebce119dd3f85dfea6ce50b75d44ca71 /src/client/DocServer.ts | |
parent | b236882faef4e5434158e7a8dfb82daa47031ca5 (diff) | |
parent | 08f125f5880247280c02633feeb31a8df1912b97 (diff) |
Merge branch 'master' into data-visualization-sarah
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r-- | src/client/DocServer.ts | 3 |
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; |