Skip to content

Commit

Permalink
Use coordinates to determine a pending route
Browse files Browse the repository at this point in the history
  • Loading branch information
paultsimura committed Nov 11, 2024
1 parent 8cd6b23 commit 139154c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/TransactionUtils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function getUpdatedTransaction({
updatedTransaction.isLoading = true;
shouldStopSmartscan = true;

if (isEmptyObject(transactionChanges.routes?.route0?.geometry)) {
if (!transactionChanges.routes?.route0?.geometry?.coordinates) {
// The waypoints were changed, but there is no route – it is pending from the BE and we should mark the fields as pending
updatedTransaction.amount = CONST.IOU.DEFAULT_AMOUNT;
updatedTransaction.modifiedAmount = CONST.IOU.DEFAULT_AMOUNT;
Expand Down

0 comments on commit 139154c

Please sign in to comment.