From 46396fcd73006d70a848eac2f57a73b1ab066f75 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Fri, 21 Nov 2025 09:31:21 +0800 Subject: [PATCH] fix empty view is shown briefly after clear cache --- src/pages/iou/request/step/IOURequestStepDestination.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/iou/request/step/IOURequestStepDestination.tsx b/src/pages/iou/request/step/IOURequestStepDestination.tsx index fd3166239918..bc167b2852f1 100644 --- a/src/pages/iou/request/step/IOURequestStepDestination.tsx +++ b/src/pages/iou/request/step/IOURequestStepDestination.tsx @@ -73,8 +73,8 @@ function IOURequestStepDestination({ const shouldShowNotFoundPage = isEmptyObject(policy); const {isOffline} = useNetwork(); - const isLoading = !isOffline && isLoadingOnyxValue(policyMetadata); - const shouldShowEmptyState = isEmptyObject(customUnit?.rates) && !isOffline; + const isLoading = !isOffline && (!customUnit?.rates || isLoadingOnyxValue(policyMetadata)); + const shouldShowEmptyState = isEmptyObject(customUnit?.rates) && !isOffline && !isLoading; const shouldShowOfflineView = isEmptyObject(customUnit?.rates) && isOffline; const navigateBack = () => {