Skip to content

Commit

Permalink
define variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Mar 1, 2024
1 parent 19e5d16 commit d90f433
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/iou/request/step/IOURequestStepDistance.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ function IOURequestStepDistance({
}

const newWaypoints = {};
let emptyWaypointIndex = -1;
_.each(data, (waypoint, index) => {
newWaypoints[`waypoint${index}`] = lodashGet(waypoints, waypoint, {});
// Find waypoint that BECOMES empty after dragging
Expand All @@ -171,7 +172,7 @@ function IOURequestStepDistance({
setOptimisticWaypoints(null);
});
},
[transactionID, waypoints, waypointsList],
[transactionID, transaction, waypoints, waypointsList],
);

const submitWaypoints = useCallback(() => {
Expand Down

0 comments on commit d90f433

Please sign in to comment.