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
  • Loading branch information
youssef-lr authored Feb 16, 2024
2 parents 6fb79c8 + 135f1d8 commit 28a1ccc
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 28a1ccc

Please sign in to comment.