Skip to content

Commit

Permalink
update logic cehcking action
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Mar 28, 2024
1 parent e14ac08 commit 6fffbe4
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 @@ -84,7 +84,7 @@ function IOURequestStepDistance({
const duplicateWaypointsError = useMemo(() => nonEmptyWaypointsCount >= 2 && _.size(validatedWaypoints) !== nonEmptyWaypointsCount, [nonEmptyWaypointsCount, validatedWaypoints]);
const atLeastTwoDifferentWaypointsError = useMemo(() => _.size(validatedWaypoints) < 2, [validatedWaypoints]);
const isEditing = action === CONST.IOU.ACTION.EDIT;
const isCreatingNewRequest = Navigation.getActiveRoute().includes('start');
const isCreatingNewRequest = !(backTo || isEditing)

useEffect(() => {
MapboxToken.init();
Expand Down

0 comments on commit 6fffbe4

Please sign in to comment.