Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrous committed May 31, 2023
1 parent 7e9adc8 commit 8789e03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ function ReportActionItem(props) {
// Right now we are only sending the latest moderationDecision to the frontend even though it is an array
let decisions = props.action.message[0].moderationDecisions;
if (decisions.length > 1) {
decisions = decisions.slice(-1)
}const latestDecision = decisions[0];
decisions = decisions.slice(-1);
}
const latestDecision = decisions[0];
if (latestDecision.decision === CONST.MODERATION.MODERATOR_DECISION_PENDING_HIDE || latestDecision.decision === CONST.MODERATION.MODERATOR_DECISION_HIDDEN) {
setIsHidden(true);
}
Expand Down

0 comments on commit 8789e03

Please sign in to comment.