Skip to content

Commit

Permalink
don't close expense report when paying
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Aug 1, 2024
1 parent d69b203 commit 183a1ec
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 183a1ec

Please sign in to comment.