diff options
author | Ashm Walia <ashmwalia@outlook.com> | 2021-01-19 11:52:19 -0800 |
---|---|---|
committer | Ashm Walia <ashmwalia@outlook.com> | 2021-01-19 11:52:19 -0800 |
commit | 623bc69013c8fd173e49fb059eaba23c9219e0eb (patch) | |
tree | 803fdf6ab3eb646a713cf276beb6302dd69b0788 /src | |
parent | c510ba308738fc88edb11772fe9db6ec4537427f (diff) |
more
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/main/NotificationsScreen.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/screens/main/NotificationsScreen.tsx b/src/screens/main/NotificationsScreen.tsx index 3a809d73..4bdee942 100644 --- a/src/screens/main/NotificationsScreen.tsx +++ b/src/screens/main/NotificationsScreen.tsx @@ -64,7 +64,9 @@ const NotificationsScreen: React.FC = () => { }; //Called everytime screen is focused - refreshNotifications(); + if (newNotificationReceived) { + refreshNotifications(); + } //Called when user leaves the screen return () => resetNewNotificationFlag(); |