diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js index e5ab88b289d7..36b0af156ae5 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js @@ -22,6 +22,7 @@ import usePrevious from '../../../../hooks/usePrevious'; import * as EmojiUtils from '../../../../libs/EmojiUtils'; import * as User from '../../../../libs/actions/User'; import * as ReportUtils from '../../../../libs/ReportUtils'; +import * as ReportActionsUtils from '../../../../libs/ReportActionsUtils'; import canFocusInputOnScreenFocus from '../../../../libs/canFocusInputOnScreenFocus'; import debouncedSaveReportComment from '../../../../libs/ComposerUtils/debouncedSaveReportComment'; import SilentCommentUpdater from './SilentCommentUpdater'; @@ -290,9 +291,11 @@ function ComposerWithSuggestions({ const parentReportActionID = lodashGet(report, 'parentReportActionID', ''); const parentReportAction = lodashGet(parentReportActions, [parentReportActionID], {}); - const lastReportAction = _.find([...reportActions, parentReportAction], (action) => ReportUtils.canEditReportAction(action)); - - if (lastReportAction !== -1 && lastReportAction) { + const lastReportAction = _.find( + [...reportActions, parentReportAction], + (action) => ReportUtils.canEditReportAction(action) && !ReportActionsUtils.isMoneyRequestAction(action), + ); + if (lastReportAction) { Report.saveReportActionDraft(reportID, lastReportAction.reportActionID, _.last(lastReportAction.message).html); } }