Skip to content

Commit 7738020

Browse files
committed
Fix Account Factories table stuck in loading state (#5058)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the `enabled` property in the `AccountFactories` component's logic to check for the presence of data in `contractListQuery` more accurately. ### Detailed summary - Changed the condition for the `enabled` property from checking `!!contractListQuery.data?.length` to `!!contractListQuery.data`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 85e7d15 commit 7738020

File tree

1 file changed

+1
-1
lines changed
  • apps/dashboard/src/components/smart-wallets/AccountFactories

1 file changed

+1
-1
lines changed

apps/dashboard/src/components/smart-wallets/AccountFactories/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function useFactories() {
4040

4141
return factories.filter((f) => f !== null);
4242
},
43-
enabled: !!user?.address && isLoggedIn && !!contractListQuery.data?.length,
43+
enabled: !!user?.address && isLoggedIn && !!contractListQuery.data,
4444
});
4545
}
4646

0 commit comments

Comments
 (0)