diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-13 18:27:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-13 18:27:07 -0400 |
commit | 93837e23a169e6b17432e4e0dd397bcaa140bb5e (patch) | |
tree | cc5694a2684c7faeda360a7b239d976a4c60edbb /src/routes/Routes.tsx | |
parent | 1c7690a3b398e12834aa2aaa0b7c34c9e9a65821 (diff) | |
parent | d074b671293c8038935674ebfb990e844128cf07 (diff) |
Merge pull request #364 from shravyaramesh/chat-token-issue
[Bugfix] Stale chat token replaced
Diffstat (limited to 'src/routes/Routes.tsx')
-rw-r--r-- | src/routes/Routes.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/Routes.tsx b/src/routes/Routes.tsx index 5ce0c771..04c081da 100644 --- a/src/routes/Routes.tsx +++ b/src/routes/Routes.tsx @@ -58,7 +58,9 @@ const Routes: React.FC = () => { }, []); useEffect(() => { - connectChatAccount(loggedInUserId, chatClient); + if (loggedInUserId) { + connectChatAccount(loggedInUserId, chatClient); + } }, [loggedInUserId]); useEffect(() => { |