From d31d4be0ea022970354cf2a94f43f47e25324d2d Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 17 Jan 2023 14:47:26 -0700 Subject: [PATCH] rm comment and create validate --- src/pages/workspace/WorkspaceMembersPage.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/workspace/WorkspaceMembersPage.js b/src/pages/workspace/WorkspaceMembersPage.js index 18cdc986d7d6..432269998a9f 100644 --- a/src/pages/workspace/WorkspaceMembersPage.js +++ b/src/pages/workspace/WorkspaceMembersPage.js @@ -211,8 +211,6 @@ class WorkspaceMembersPage extends React.Component { renderItem({ item, }) { - // const canBeRemoved = this.props.policy.owner !== item.login && this.props.session.email !== item.login && item.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE; - // const canBeRemoved = this.props.policy.owner !== login && this.props.session.email !== login; return ( this.dismissError(item)} pendingAction={item.pendingAction} errors={item.errors}> { + if (member) + }); + // this.props.policy.owner !== item.login && this.props.session.email !== item.login && item.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE; + } + render() { const policyMemberList = lodashGet(this.props, 'policyMemberList', {}); let data = [];