From 371c5fdd505361b226133fb446924f23c58f29c0 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 13 Mar 2021 10:00:58 +0100 Subject: no notification dot when there are no notifications --- components/gameBar.tsx | 2 -- components/navbar.tsx | 2 +- 2 files changed, 1 insertion(+), 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: {
- - 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); -- cgit v1.2.3