Skip to content

Commit

Permalink
revert the report when fails to pay
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Jan 9, 2024
1 parent 85fee5a commit 901df70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -3020,6 +3020,16 @@ function getPayMoneyRequestParams(chatReport, iouReport, recipient, paymentMetho
},
},
},
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${iouReport.reportID}`,
value: iouReport,
},
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${chatReport.reportID}`,
value: chatReport,
},
];

if (!_.isNull(currentNextStep)) {
Expand Down

0 comments on commit 901df70

Please sign in to comment.