Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
namhihi237 committed Sep 28, 2023
1 parent a29fd40 commit 0dd0e57
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 @@ -198,11 +198,11 @@ function ReportActionItem(props) {
}, [props.action, props.report.reportID]);

useEffect(() => {
if (isDraftEmpty || !ReportActionsUtils.isDeletedAction(props.action)) {
if (!props.draftMessage || !ReportActionsUtils.isDeletedAction(props.action)) {
return;
}
Report.saveReportActionDraft(props.report.reportID, props.action, '');
}, [isDraftEmpty, props.action, props.report.reportID]);
}, [props.draftMessage, props.action, props.report.reportID]);

// Hide the message if it is being moderated for a higher offense, or is hidden by a moderator
// Removed messages should not be shown anyway and should not need this flow
Expand Down

0 comments on commit 0dd0e57

Please sign in to comment.