From 623bc69013c8fd173e49fb059eaba23c9219e0eb Mon Sep 17 00:00:00 2001 From: Ashm Walia Date: Tue, 19 Jan 2021 11:52:19 -0800 Subject: more --- src/screens/main/NotificationsScreen.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3-70-g09d2