From 454f5dec8cbf2065ba615fa83183cbde44ffee21 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Fri, 5 Feb 2021 08:06:47 -0800 Subject: fixed issue 2 --- src/screens/profile/ProfileScreen.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/screens/profile/ProfileScreen.tsx b/src/screens/profile/ProfileScreen.tsx index 0ea96cd2..9cdba555 100644 --- a/src/screens/profile/ProfileScreen.tsx +++ b/src/screens/profile/ProfileScreen.tsx @@ -29,9 +29,9 @@ const ProfileScreen: React.FC = ({route}) => { * This is a double safety check to avoid app crash. * Checks if the required userXId is present in the store, if not userXId is set to dummy id */ - if (userXId && !(userXId in useStore().getState().userX[screenType])) { - userXId = DUMMY_USERID; - } + // if (userXId && !(userXId in useStore().getState().userX[screenType])) { + // userXId = DUMMY_USERID; + // } /** * Code under useFocusEffect gets executed every time the screen comes under focus / is being viewed by the user. -- cgit v1.2.3-70-g09d2