We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4692a45 + 46396fc commit 1d0ce34Copy full SHA for 1d0ce34
1 file changed
src/pages/iou/request/step/IOURequestStepDestination.tsx
@@ -74,8 +74,8 @@ function IOURequestStepDestination({
74
const shouldShowNotFoundPage = isEmptyObject(policy);
75
76
const {isOffline} = useNetwork();
77
- const isLoading = !isOffline && isLoadingOnyxValue(policyMetadata);
78
- const shouldShowEmptyState = isEmptyObject(customUnit?.rates) && !isOffline;
+ const isLoading = !isOffline && (!customUnit?.rates || isLoadingOnyxValue(policyMetadata));
+ const shouldShowEmptyState = isEmptyObject(customUnit?.rates) && !isOffline && !isLoading;
79
const shouldShowOfflineView = isEmptyObject(customUnit?.rates) && isOffline;
80
81
const navigateBack = () => {
0 commit comments