Skip to content

Commit

Permalink
Merge pull request #23313 from b4s36t4/fix/report-state-view
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrous authored Jul 26, 2023
2 parents 4f10325 + 366046a commit d227fe3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,12 @@ function ReportActionItem(props) {
return;
}

if (_.contains([CONST.MODERATION.MODERATOR_DECISION_PENDING_HIDE, CONST.MODERATION.MODERATOR_DECISION_HIDDEN], latestDecision)) {
setModerationDecision(latestDecision);
if (!_.contains([CONST.MODERATION.MODERATOR_DECISION_APPROVED, CONST.MODERATION.MODERATOR_DECISION_PENDING], latestDecision)) {
setIsHidden(true);
return;
}
setModerationDecision(latestDecision);
setIsHidden(false);
}, [latestDecision, props.action.actionName]);

const toggleContextMenuFromActiveReportAction = useCallback(() => {
Expand Down

0 comments on commit d227fe3

Please sign in to comment.