Skip to content

Commit

Permalink
fix: check websocket client connection status before blocking the flow
Browse files Browse the repository at this point in the history
  • Loading branch information
siepra authored Nov 29, 2023
1 parent 47669f4 commit faca03b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export function* redirectionSaga(): Generator {

// If user doesn't belong to a community, wait for websocket connection and redirect to welcome screen
console.log('INIT_NAVIGATION: Waiting for websocket connection before proceeding.')
yield* take(initActions.setWebsocketConnected)
const connection = yield* select(initSelectors.isWebsocketConnected)
if (!connection) {
yield* take(initActions.setWebsocketConnected)
}

console.log('INIT_NAVIGATION: Switching to the join community screen.')
yield* put(
Expand Down

0 comments on commit faca03b

Please sign in to comment.