diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-13 10:00:58 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-13 10:00:58 +0100 |
commit | 371c5fdd505361b226133fb446924f23c58f29c0 (patch) | |
tree | a792c2a0b294eb272687b2e2c1b9187e3c7c42d0 /components | |
parent | 31593c91c2a84406400cee9b749a501a19b94834 (diff) |
no notification dot when there are no notifications
Diffstat (limited to 'components')
-rw-r--r-- | components/gameBar.tsx | 2 | ||||
-rw-r--r-- | components/navbar.tsx | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/components/gameBar.tsx b/components/gameBar.tsx index f26201c..67712e2 100644 --- a/components/gameBar.tsx +++ b/components/gameBar.tsx @@ -71,8 +71,6 @@ export function GameBar(props: { <div style={{ ...GameBarAlignStyle, float: "right" }}> <GameBarModule> <SettingsRoundedIcon/> - <Bubble> - </Bubble> </GameBarModule> <GameBarSpacer/> <GameBarModule> diff --git a/components/navbar.tsx b/components/navbar.tsx index 635be86..ee00f0a 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -151,7 +151,7 @@ export function NavBar() { url: `/api/social/list/requests` }); setFriendRequests(friendRequestsReq.data.requests); - setGotNotifications(true); + setGotNotifications(gotNotifications || friendRequestsReq.data.requests.length > 0); } setGotData(true); |