Skip to content

Commit

Permalink
Merge pull request #27991 from DylanDylann/fix/27773-user-still-can-r…
Browse files Browse the repository at this point in the history
…emove-invalid-phone-number

Fix/27773: User still can remove invalid member
  • Loading branch information
jasperhuangg authored Oct 2, 2023
2 parents 7dc923e + cb3ebed commit 6347ce5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/workspace/WorkspaceMembersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,11 @@ function WorkspaceMembersPage(props) {
keyForList: accountID,
accountID: Number(accountID),
isSelected: _.contains(selectedEmployees, Number(accountID)),
isDisabled: accountID === props.session.accountID || details.login === props.policy.owner || policyMember.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE,
isDisabled:
accountID === props.session.accountID ||
details.login === props.policy.owner ||
policyMember.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE ||
!_.isEmpty(policyMember.errors),
text: props.formatPhoneNumber(details.displayName),
alternateText: props.formatPhoneNumber(details.login),
rightElement: isAdmin ? (
Expand Down

0 comments on commit 6347ce5

Please sign in to comment.