Skip to content

Commit

Permalink
fix member selection
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Mar 8, 2024
1 parent 9132e05 commit e7d096c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pages/workspace/WorkspaceMembersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,11 @@ function WorkspaceMembersPage({policyMembers, personalDetails, route, policy, se
/** Opens the member details page */
const openMemberDetails = useCallback(
(item: MemberOption) => {
if (!isPolicyAdmin) {
if (!isPolicyAdmin || !PolicyUtils.isPaidGroupPolicy(policy)) {
Navigation.navigate(ROUTES.PROFILE.getRoute(item.accountID));
return;
}

if (!PolicyUtils.isPaidGroupPolicy(policy)) {
return;
}

Navigation.navigate(ROUTES.WORKSPACE_MEMBER_DETAILS.getRoute(route.params.policyID, item.accountID, Navigation.getActiveRoute()));
},
[isPolicyAdmin, policy, route.params.policyID],
Expand Down

0 comments on commit e7d096c

Please sign in to comment.