Skip to content

Commit

Permalink
Merge pull request #38987 from DylanDylann/fix/38814
Browse files Browse the repository at this point in the history
Fix/38814: Distance - Unable to save second distance edit offline
  • Loading branch information
srikarparsi authored Apr 3, 2024
2 parents 941a5f1 + f8782d5 commit 7080295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/iou/request/step/IOURequestStepDistance.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function IOURequestStepDistance({

const submitWaypoints = useCallback(() => {
// If there is any error or loading state, don't let user go to next page.
if (duplicateWaypointsError || atLeastTwoDifferentWaypointsError || hasRouteError || isLoadingRoute || isLoading) {
if (duplicateWaypointsError || atLeastTwoDifferentWaypointsError || hasRouteError || isLoadingRoute || (!isEditing && isLoading)) {
setShouldShowAtLeastTwoDifferentWaypointsError(true);
return;
}
Expand Down

0 comments on commit 7080295

Please sign in to comment.