Skip to content

Commit

Permalink
Merge pull request #44712 from layacat/fix-44506
Browse files Browse the repository at this point in the history
fix: 44506 IOS - Transfer owner - App returns to empty screen when sw…
  • Loading branch information
puneetlath authored Jul 2, 2024
2 parents b37bab0 + 7cee899 commit 8c66de1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ function WorkspaceOwnerChangeWrapperPage({route, policy}: WorkspaceOwnerChangeWr

if (!policy.errorFields && policy.isChangeOwnerFailed) {
// there are some errors but not related to change owner flow - show an error page
Navigation.goBack();
Navigation.navigate(ROUTES.WORKSPACE_OWNER_CHANGE_ERROR.getRoute(policyID, accountID));
return;
}

if (!policy?.errorFields?.changeOwner && policy?.isChangeOwnerSuccessful) {
// no errors - show a success page
Navigation.goBack();
Navigation.navigate(ROUTES.WORKSPACE_OWNER_CHANGE_SUCCESS.getRoute(policyID, accountID));
return;
}
Expand Down

0 comments on commit 8c66de1

Please sign in to comment.