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

(cherry picked from commit bb6e7eb)
  • Loading branch information
rlinoz authored and OSBotify committed Jun 7, 2024
1 parent f8d1eaf commit 29789d8
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 29789d8

Please sign in to comment.