Skip to content

Commit

Permalink
revert expensify card loading
Browse files Browse the repository at this point in the history
  • Loading branch information
waterim committed Nov 22, 2024
1 parent 53ff593 commit d998746
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ function WorkspaceExpensifyCardPage({route}: WorkspaceExpensifyCardPageProps) {
useFocusEffect(fetchExpensifyCards);

const paymentBankAccountID = cardSettings?.paymentBankAccountID ?? 0;
const isLoading = !isOffline && !cardSettings;

const isLoading = !isOffline && (!cardSettings || (cardSettings.isLoading && !cardsList));
return (
<AccessOrNotFoundWrapper
accessVariants={[CONST.POLICY.ACCESS_VARIANTS.ADMIN, CONST.POLICY.ACCESS_VARIANTS.PAID]}
Expand Down

0 comments on commit d998746

Please sign in to comment.