aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshm Walia <ashmwalia@outlook.com>2021-01-19 11:52:19 -0800
committerAshm Walia <ashmwalia@outlook.com>2021-01-19 11:52:19 -0800
commit623bc69013c8fd173e49fb059eaba23c9219e0eb (patch)
tree803fdf6ab3eb646a713cf276beb6302dd69b0788
parentc510ba308738fc88edb11772fe9db6ec4537427f (diff)
more
-rw-r--r--src/screens/main/NotificationsScreen.tsx4
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();