Skip to content

Commit

Permalink
Merge pull request #46654 from bernhardoj/fix/46139-rhp-closes-when-p…
Browse files Browse the repository at this point in the history
…ay-expense

Fix expense report RHP closes when paying
  • Loading branch information
Gonals authored Aug 2, 2024
2 parents 4f16e26 + 183a1ec commit 30cfaef
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7201,7 +7201,6 @@ function payMoneyRequest(paymentType: PaymentMethodType, chatReport: OnyxTypes.R
const apiCommand = paymentType === CONST.IOU.PAYMENT_TYPE.EXPENSIFY ? WRITE_COMMANDS.PAY_MONEY_REQUEST_WITH_WALLET : WRITE_COMMANDS.PAY_MONEY_REQUEST;

API.write(apiCommand, params, {optimisticData, successData, failureData});
Navigation.dismissModalWithReport(chatReport);
}

function payInvoice(paymentMethodType: PaymentMethodType, chatReport: OnyxTypes.Report, invoiceReport: OnyxTypes.Report) {
Expand Down

0 comments on commit 30cfaef

Please sign in to comment.