Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
siepra committed Jan 30, 2024
1 parent 5ad5eb1 commit 7127283
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/mobile/src/store/init/deepLink/deepLink.saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,11 @@ export function* deepLinkSaga(action: PayloadAction<ReturnType<typeof initAction
if (alreadyBelongsWithAnotherCommunity || alreadyBelongsWithCurrentCommunity) {
console.log('INIT_NAVIGATION: Displaying error (user already belongs to a community).')

const destination =
alreadyBelongsWithAnotherCommunity || alreadyBelongsWithCurrentCommunity
? ScreenNames.ChannelListScreen
: ScreenNames.JoinCommunityScreen

yield* put(
navigationActions.replaceScreen({
screen: ScreenNames.ErrorScreen,
params: {
onPress: () => replaceScreen(destination),
onPress: () => replaceScreen(ScreenNames.ChannelListScreen),
icon: appImages.quiet_icon_round,
title: 'You already belong to a community',
message: "We're sorry but for now you can only be a member of a single community at a time",
Expand Down

0 comments on commit 7127283

Please sign in to comment.