From 692d2507a5cefba189f6342ac88a4a5d53a06186 Mon Sep 17 00:00:00 2001 From: neil-marcellini Date: Wed, 6 Nov 2024 11:14:19 -0800 Subject: [PATCH] Always display distance tab --- src/pages/iou/request/IOURequestStartPage.tsx | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/pages/iou/request/IOURequestStartPage.tsx b/src/pages/iou/request/IOURequestStartPage.tsx index 77030b3e72ce..f095fac4d6b1 100644 --- a/src/pages/iou/request/IOURequestStartPage.tsx +++ b/src/pages/iou/request/IOURequestStartPage.tsx @@ -73,10 +73,6 @@ function IOURequestStartPage({ IOU.initMoneyRequest(reportID, policy, isFromGlobalCreate, transaction?.iouRequestType, transactionRequestType); }, [transaction, policy, reportID, iouType, isFromGlobalCreate, transactionRequestType, isLoadingSelectedTab]); - const isExpenseChat = ReportUtils.isPolicyExpenseChat(report); - const isExpenseReport = ReportUtils.isExpenseReport(report); - const shouldDisplayDistanceRequest = !!canUseCombinedTrackSubmit || isExpenseChat || isExpenseReport || (isFromGlobalCreate && iouType !== CONST.IOU.TYPE.SPLIT); - const navigateBack = () => { Navigation.closeRHPFlow(); }; @@ -163,15 +159,13 @@ function IOURequestStartPage({ )} - {shouldDisplayDistanceRequest && ( - - {() => ( - - - - )} - - )} + + {() => ( + + + + )} + ) : (