Skip to content

Commit

Permalink
Merge pull request #43280 from Expensify/rodrigo-fix-split-amount-nav…
Browse files Browse the repository at this point in the history
…igation

Fix navigation when changing amount of scan split
  • Loading branch information
rlinoz authored Jun 7, 2024
2 parents b94ccf3 + 1562346 commit bb6e7eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/iou/request/step/IOURequestStepAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,12 @@ function IOURequestStepAmount({
// If the value hasn't changed, don't request to save changes on the server and just close the modal
const transactionCurrency = TransactionUtils.getCurrency(currentTransaction);
if (newAmount === TransactionUtils.getAmount(currentTransaction) && currency === transactionCurrency) {
Navigation.dismissModal();
if (isSplitBill) {
Navigation.goBack(backTo);
} else {
Navigation.dismissModal();
}

return;
}

Expand Down

0 comments on commit bb6e7eb

Please sign in to comment.