Skip to content

Commit

Permalink
Merge pull request #52949 from callstack-internal/fix-52909
Browse files Browse the repository at this point in the history
[Workspace Feeds]: Update isLoading both for expensify and company cards
  • Loading branch information
mountiny authored Nov 26, 2024
2 parents c7c7690 + ef96172 commit 2719015
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function WorkspaceCompanyCardPage({route}: WorkspaceCompanyCardPageProps) {
}, [policyID, workspaceAccountID]);

const {isOffline} = useNetwork({onReconnect: fetchCompanyCards});
const isLoading = !isOffline && (!cardFeeds || cardFeeds.isLoading);
const isLoading = !isOffline && (!cardFeeds || (cardFeeds.isLoading && !cardsList));

useFocusEffect(fetchCompanyCards);

Expand Down

0 comments on commit 2719015

Please sign in to comment.