diff --git a/src/libs/actions/Transaction.ts b/src/libs/actions/Transaction.ts index 430de0557674..31aa8722637c 100644 --- a/src/libs/actions/Transaction.ts +++ b/src/libs/actions/Transaction.ts @@ -73,6 +73,8 @@ function saveWaypoint(transactionID: string, index: string, waypoint: RecentWayp // Clear the existing route so that we don't show an old route routes: { route0: { + // Clear the existing distance to recalculate next time + distance: null, geometry: { coordinates: null, }, @@ -146,6 +148,7 @@ function removeWaypoint(transaction: Transaction, currentIndex: string, isDraft: // Clear the existing route so that we don't show an old route routes: { route0: { + // Clear the existing distance to recalculate next time distance: null, geometry: { coordinates: null, @@ -255,6 +258,7 @@ function updateWaypoints(transactionID: string, waypoints: WaypointCollection, i // Clear the existing route so that we don't show an old route routes: { route0: { + // Clear the existing distance to recalculate next time distance: null, geometry: { coordinates: null,