Skip to content

Commit

Permalink
Merge pull request #42833 from nkdengineer/fix/42784
Browse files Browse the repository at this point in the history
Fix wrong amount is displayed when updating waypoint in offline
  • Loading branch information
neil-marcellini authored Jul 2, 2024
2 parents b026265 + efa6c00 commit b37bab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2441,7 +2441,7 @@ function calculateAmountForUpdatedWaypoint(
) {
let updatedAmount: number = CONST.IOU.DEFAULT_AMOUNT;
let updatedMerchant = Localize.translateLocal('iou.fieldPending');
if (!isEmptyObject(transactionChanges?.routes)) {
if (!isEmptyObject(transactionChanges?.routes?.route0?.geometry)) {
const customUnitRateID = TransactionUtils.getRateID(transaction) ?? '';
const mileageRates = DistanceRequestUtils.getMileageRates(policy, true);
const policyCurrency = policy?.outputCurrency ?? PolicyUtils.getPersonalPolicy()?.outputCurrency ?? CONST.CURRENCY.USD;
Expand Down

0 comments on commit b37bab0

Please sign in to comment.