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.
1 parent ccf5583 commit 46396fcCopy full SHA for 46396fc
1 file changed
src/pages/iou/request/step/IOURequestStepDestination.tsx
@@ -73,8 +73,8 @@ function IOURequestStepDestination({
73
const shouldShowNotFoundPage = isEmptyObject(policy);
74
75
const {isOffline} = useNetwork();
76
- const isLoading = !isOffline && isLoadingOnyxValue(policyMetadata);
77
- const shouldShowEmptyState = isEmptyObject(customUnit?.rates) && !isOffline;
+ const isLoading = !isOffline && (!customUnit?.rates || isLoadingOnyxValue(policyMetadata));
+ const shouldShowEmptyState = isEmptyObject(customUnit?.rates) && !isOffline && !isLoading;
78
const shouldShowOfflineView = isEmptyObject(customUnit?.rates) && isOffline;
79
80
const navigateBack = () => {
0 commit comments