From b37fbd1486ca6d4441b334b2cd2e52985a34784d Mon Sep 17 00:00:00 2001 From: tienifr Date: Sat, 28 Oct 2023 16:17:51 +0700 Subject: [PATCH] fix: 30448 --- src/libs/ReportUtils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 2dccc68b74e0..0f32468a8c3c 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -1568,6 +1568,10 @@ function canEditMoneyRequest(reportAction) { return true; } + if (reportAction.originalMessage.type !== CONST.IOU.REPORT_ACTION_TYPE.CREATE) { + return false; + } + const moneyRequestReportID = lodashGet(reportAction, 'originalMessage.IOUReportID', 0); if (!moneyRequestReportID) {