Skip to content

Commit

Permalink
Merge pull request #27989 from dukenv0307/fix/27469
Browse files Browse the repository at this point in the history
fix: distance request money next button becomes clickable for few seconds
  • Loading branch information
luacmartins authored Sep 25, 2023
2 parents e87927e + 8076c1f commit 19f93db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/DistanceRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,9 @@ function DistanceRequest({iou, iouType, report, transaction, mapboxAccessToken,
success
style={[styles.w100, styles.mb4, styles.ph4, styles.flexShrink0]}
onPress={navigateToNextPage}
isDisabled={_.size(validatedWaypoints) < 2 || hasRouteError}
isDisabled={_.size(validatedWaypoints) < 2 || hasRouteError || isLoadingRoute}
text={translate('common.next')}
isLoading={isLoadingRoute || shouldFetchRoute}
/>
</ScrollView>
);
Expand Down

0 comments on commit 19f93db

Please sign in to comment.