Skip to content

Commit

Permalink
update exists
Browse files Browse the repository at this point in the history
  • Loading branch information
thienlnam committed Sep 1, 2023
1 parent 1cabd2b commit cab7be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit cab7be1

Please sign in to comment.