From cab7be121c8fd11482d06976a7bf394d8042cbc5 Mon Sep 17 00:00:00 2001 From: Jack Nam Date: Thu, 31 Aug 2023 17:30:46 -0700 Subject: [PATCH] update exists --- src/libs/actions/Transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/Transaction.js b/src/libs/actions/Transaction.js index 4771e0debb3a..b16e8c8753ac 100644 --- a/src/libs/actions/Transaction.js +++ b/src/libs/actions/Transaction.js @@ -98,7 +98,7 @@ function saveWaypoint(transactionID, index, waypoint) { // You can save offline waypoints without verifying the address (we will geocode it on the backend) // We're going to prevent saving those addresses in the recent waypoints though since they could be invalid addresses // However, in the backend once we verify the address, we will save the waypoint in the recent waypoints NVP - if (!waypoint || (lodashHas(waypoint, 'lat') && waypoint.lat === 0) || (lodashHas(waypoint, 'lng') && waypoint.lng === 0)) { + if (!lodashHas(waypoint, 'lat') || !lodashHas(waypoint, 'lng')) { return; }