From 0dd0e57e6b2fa524ac35a94a42e74f485e985975 Mon Sep 17 00:00:00 2001 From: Nam Le Date: Thu, 28 Sep 2023 22:46:18 +0700 Subject: [PATCH] merge main --- src/pages/home/report/ReportActionItem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index d0b35acec8c5..94aff2849c82 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -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