Skip to content

Commit

Permalink
Merge pull request #36631 from Expensify/alberto-redDot
Browse files Browse the repository at this point in the history
Set the error correctly on payment cancellation

(cherry picked from commit 28a1ccc)
  • Loading branch information
youssef-lr authored and OSBotify committed Feb 19, 2024
1 parent a30ab75 commit a9fd919
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 @@ -3672,7 +3672,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 a9fd919

Please sign in to comment.