Skip to content

Commit

Permalink
Merge pull request #22141 from Expensify/dangrous-reportactionitemstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrous authored Jul 6, 2023
2 parents b595101 + eb4e322 commit e2ef6ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ function ReportActionItem(props) {
const decisions = lodashGet(props, ['action', 'message', 0, 'moderationDecisions'], []);
const latestDecision = lodashGet(_.last(decisions), 'decision', '');
useEffect(() => {
if (!props.action.actionName === CONST.REPORT.ACTIONS.TYPE.ADDCOMMENT || _.isEmpty(latestDecision)) {
if (props.action.actionName !== CONST.REPORT.ACTIONS.TYPE.ADDCOMMENT || _.isEmpty(latestDecision)) {
return;
}

if (latestDecision === CONST.MODERATION.MODERATOR_DECISION_PENDING_HIDE || latestDecision === CONST.MODERATION.MODERATOR_DECISION_HIDDEN) {
if (_.contains([CONST.MODERATION.MODERATOR_DECISION_PENDING_HIDE, CONST.MODERATION.MODERATOR_DECISION_HIDDEN], latestDecision)) {
setIsHidden(true);
}
setModerationDecision(latestDecision);
Expand Down

0 comments on commit e2ef6ef

Please sign in to comment.