Skip to content

Commit

Permalink
Merge pull request #34127 from bernhardoj/fix/33524-revert-optimistic…
Browse files Browse the repository at this point in the history
…-pay-action

Fix pay button doesn't reshow after the pay request fails
  • Loading branch information
marcochavezf authored Jan 12, 2024
2 parents c1b8be6 + 901df70 commit 9fb5e6c
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 @@ -3048,6 +3048,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 9fb5e6c

Please sign in to comment.