diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index b99ffeb603c5..44eba0cef5a5 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -2120,7 +2120,7 @@ function submitReport(expenseReport) { lastMessageText: optimisticSubmittedReportAction.message[0].text, lastMessageHtml: optimisticSubmittedReportAction.message[0].html, state: CONST.REPORT.STATE.SUBMITTED, - stateNum: CONST.REPORT.STATE_NUM.SUBMITTED, + stateNum: CONST.REPORT.STATE_NUM.PROCESSING, statusNum: CONST.REPORT.STATUS.SUBMITTED, }, }; @@ -2148,6 +2148,14 @@ function submitReport(expenseReport) { }, }, }, + { + onyxMethod: Onyx.METHOD.MERGE, + key: `${ONYXKEYS.COLLECTION.REPORT}${expenseReport.reportID}`, + value: { + stateNum: CONST.REPORT.STATE_NUM.OPEN, + statusNum: CONST.REPORT.STATUS.OPEN, + }, + }, ]; API.write(