Skip to content

Commit

Permalink
Set the error correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonals committed Feb 15, 2024
1 parent 96cb556 commit 135f1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3679,7 +3679,7 @@ function cancelPayment(expenseReport: OnyxTypes.Report, chatReport: OnyxTypes.Re
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${expenseReport.reportID}`,
value: {
[expenseReport.reportActionID ?? '']: {
[optimisticReportAction.reportActionID ?? '']: {
errors: ErrorUtils.getMicroSecondOnyxError('iou.error.other'),
},
},
Expand Down

0 comments on commit 135f1d8

Please sign in to comment.