diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-03-18 02:06:02 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-03-18 02:06:02 -0700 |
commit | 1080adb75c18f6da6b91be4264c69a9bf908ff0d (patch) | |
tree | c29ea0a0e3be6f14d64057796ddb5b853426f070 /src/utils/users.ts | |
parent | 8569dafb631d99f325236fb7a134a0087d95b212 (diff) |
works
Diffstat (limited to 'src/utils/users.ts')
-rw-r--r-- | src/utils/users.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/users.ts b/src/utils/users.ts index af4f3813..82bcb309 100644 --- a/src/utils/users.ts +++ b/src/utils/users.ts @@ -96,7 +96,7 @@ export const userXInStore = ( userId: string, ) => { const userX = state.userX[screen]; - return userId in userX && userX[userId].user.userId; + return userX && userId in userX && userX[userId].user.userId; }; /** |