Skip to content

Commit

Permalink
Merge pull request #35829 from ZhenjaHorbach/distance-by-adding-2nd-a…
Browse files Browse the repository at this point in the history
…dd-stop-user-can-delete-empty-location

Fix bug with Distance - By adding 2nd add stop user can delete empty location
  • Loading branch information
Beamanator authored Feb 7, 2024
2 parents 7f4cdce + 9070dc4 commit 7f84a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/iou/request/step/IOURequestStepWaypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ function IOURequestStepWaypoint({

const locationBias = useLocationBias(allWaypoints, userLocation);
const waypointAddress = lodashGet(currentWaypoint, 'address', '');
// Hide the menu when there is only start and finish waypoint
const shouldShowThreeDotsButton = waypointCount > 2;
// Hide the menu when there is only start and finish waypoint or the current waypoint is empty
const shouldShowThreeDotsButton = waypointCount > 2 && waypointAddress;
const shouldDisableEditor =
isFocused &&
(Number.isNaN(parsedWaypointIndex) || parsedWaypointIndex < 0 || parsedWaypointIndex > waypointCount || (filledWaypointCount < 2 && parsedWaypointIndex >= waypointCount));
Expand Down

0 comments on commit 7f84a75

Please sign in to comment.