Skip to content

Commit 1d0ce34

Browse files
authored
Merge pull request #75716 from bernhardoj/fix/74272-after-clear-cache-per-diem-shows-empty-state-briefly
Fix empty per diem view is shown briefly after clear cache
2 parents 4692a45 + 46396fc commit 1d0ce34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/iou/request/step/IOURequestStepDestination.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ function IOURequestStepDestination({
7474
const shouldShowNotFoundPage = isEmptyObject(policy);
7575

7676
const {isOffline} = useNetwork();
77-
const isLoading = !isOffline && isLoadingOnyxValue(policyMetadata);
78-
const shouldShowEmptyState = isEmptyObject(customUnit?.rates) && !isOffline;
77+
const isLoading = !isOffline && (!customUnit?.rates || isLoadingOnyxValue(policyMetadata));
78+
const shouldShowEmptyState = isEmptyObject(customUnit?.rates) && !isOffline && !isLoading;
7979
const shouldShowOfflineView = isEmptyObject(customUnit?.rates) && isOffline;
8080

8181
const navigateBack = () => {

0 commit comments

Comments
 (0)