Skip to content

Commit

Permalink
Merge pull request #39991 from nkdengineer/fix/38959
Browse files Browse the repository at this point in the history
Fix join workspace flow
  • Loading branch information
tgolen authored Apr 11, 2024
2 parents ffc8ea9 + e3fa5ed commit 8f90c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/workspace/WorkspaceJoinUserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ function WorkspaceJoinUserPage({route, policy}: WorkspaceJoinUserPageProps) {
}, []);

useEffect(() => {
if (!policy || isUnmounted.current || isJoinLinkUsed) {
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 8f90c25

Please sign in to comment.