Skip to content

Commit

Permalink
simple go back without fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
burczu committed Apr 4, 2024
1 parent 9a6f323 commit 23e68c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function WorkspaceMemberDetailsPage({personalDetails, policyMembers, policy, rou
const removeUser = useCallback(() => {
Policy.removeMembers([accountID], policyID);
setIsRemoveMemberConfirmModalVisible(false);
Navigation.goBack(ROUTES.WORKSPACE_MEMBERS.getRoute(policyID));
Navigation.goBack();
}, [accountID, policyID]);

const navigateToProfile = useCallback(() => {
Expand Down Expand Up @@ -134,7 +134,6 @@ function WorkspaceMemberDetailsPage({personalDetails, policyMembers, policy, rou
<HeaderWithBackButton
title={displayName}
subtitle={policy?.name}
onBackButtonPress={() => Navigation.goBack(ROUTES.WORKSPACE_MEMBERS.getRoute(policyID))}
/>
<View style={[styles.containerWithSpaceBetween, styles.pointerEventsBoxNone, styles.justifyContentStart]}>
<View style={[styles.avatarSectionWrapper, styles.pb0]}>
Expand Down

0 comments on commit 23e68c6

Please sign in to comment.