diff --git a/src/pages/workspace/members/WorkspaceOwnerChangeWrapperPage.tsx b/src/pages/workspace/members/WorkspaceOwnerChangeWrapperPage.tsx index a6f1568b63e0..f6ab69b1e9c5 100644 --- a/src/pages/workspace/members/WorkspaceOwnerChangeWrapperPage.tsx +++ b/src/pages/workspace/members/WorkspaceOwnerChangeWrapperPage.tsx @@ -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; }