Skip to content

Commit

Permalink
Merge pull request #45878 from etCoderDysto/remove-user-modal
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisl authored Jul 23, 2024
2 parents 7aed308 + 5c2d55a commit cd16679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function WorkspaceMemberDetailsPage({personalDetails, policy, route}: WorkspaceM
const confirmModalPrompt = useMemo(() => {
const isApprover = Member.isApprover(policy, accountID);
if (!isApprover) {
translate('workspace.people.removeMemberPrompt', {memberName: displayName});
return translate('workspace.people.removeMemberPrompt', {memberName: displayName});
}
return translate('workspace.people.removeMembersWarningPrompt', {memberName: displayName, ownerName: policyOwnerDisplayName});
}, [accountID, policy, displayName, policyOwnerDisplayName, translate]);
Expand Down

0 comments on commit cd16679

Please sign in to comment.