From 31e0e0b14f17e8d1681e3e5ce95a941cc83f0842 Mon Sep 17 00:00:00 2001 From: Shubham Agrawal Date: Sun, 31 Dec 2023 22:49:17 +0530 Subject: [PATCH] fixed error flow in submit report --- src/libs/actions/IOU.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index ecae885392b9..4c82ae23696b 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -3075,7 +3075,7 @@ function submitReport(expenseReport) { onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${expenseReport.reportID}`, value: { - [expenseReport.reportActionID]: { + [optimisticSubmittedReportAction.reportActionID]: { errors: ErrorUtils.getMicroSecondOnyxError('iou.error.other'), }, },