From 8076c1f732ff1e3ae6f26c06cda16c393a8af107 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Fri, 22 Sep 2023 13:45:11 +0700 Subject: [PATCH] fix: distance request money next button becomes clickable for few seconds --- src/components/DistanceRequest.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/DistanceRequest.js b/src/components/DistanceRequest.js index 8937fc434f53..92b8616bd856 100644 --- a/src/components/DistanceRequest.js +++ b/src/components/DistanceRequest.js @@ -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} /> );