Skip to content

Commit

Permalink
update loading
Browse files Browse the repository at this point in the history
  • Loading branch information
waterim committed Nov 25, 2024
1 parent 4443881 commit ef96172
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;
const isLoading = !isOffline && (!cardFeeds || (cardFeeds.isLoading && !cardsList));

useFocusEffect(fetchCompanyCards);

Expand Down

0 comments on commit ef96172

Please sign in to comment.