Skip to content

Commit

Permalink
fix go to inital page after requesting join
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Apr 11, 2024
1 parent fa0a393 commit e3fa5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceJoinUserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function WorkspaceJoinUserPage({route, policy}: WorkspaceJoinUserPageProps) {
if (isUnmounted.current || isJoinLinkUsed) {
return;
}
if (!isEmptyObject(policy)) {
if (!isEmptyObject(policy) && !policy?.isJoinRequestPending) {
Navigation.isNavigationReady().then(() => {
Navigation.goBack(undefined, false, true);
Navigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(policyID ?? ''));
Expand Down

0 comments on commit e3fa5ed

Please sign in to comment.