aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-02-05 08:06:47 -0800
committerShravya Ramesh <shravs1208@gmail.com>2021-02-05 08:06:47 -0800
commit454f5dec8cbf2065ba615fa83183cbde44ffee21 (patch)
tree42b03481cc06d5f6272563d6c27bb71e0646551a
parent40bbce1d53eb43ed05c823e7fea72cab87eaf51a (diff)
fixed issue 2
-rw-r--r--src/screens/profile/ProfileScreen.tsx6
1 files changed, 3 insertions, 3 deletions
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<ProfileOnboardingProps> = ({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.