diff options
author | Shravya Ramesh <37447613+shravyaramesh@users.noreply.github.com> | 2021-03-05 20:33:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 20:33:51 -0800 |
commit | 27925a267e9d279e29a1a1852891e392fdc4b3af (patch) | |
tree | f77ab55bf3f5cbd6190177058353ef01ad767711 /src/utils/common.ts | |
parent | 8e4d9135f0645b56665ad23d6de5dd0afa1ef444 (diff) | |
parent | 59bc015a22a0c50d6c64ecf7501c269dae59bfbd (diff) |
Merge branch 'master' into badges-people-screen
Diffstat (limited to 'src/utils/common.ts')
-rw-r--r-- | src/utils/common.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/common.ts b/src/utils/common.ts index 50f96493..30122e79 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -88,7 +88,9 @@ export const haveUnreadNotifications = async ( continue; } const unread = lastViewed ? lastViewed.diff(notificationDate) < 0 : false; - if (unread) return true; + if (unread) { + return true; + } } return false; }; |