From 77380200bb10ba877478f1adc202e39a1dba5deb Mon Sep 17 00:00:00 2001 From: MananTank Date: Wed, 16 Oct 2024 21:48:35 +0000 Subject: [PATCH] Fix Account Factories table stuck in loading state (#5058) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem solved Short description of the bug fixed or feature added --- ## 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}` --- .../src/components/smart-wallets/AccountFactories/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/components/smart-wallets/AccountFactories/index.tsx b/apps/dashboard/src/components/smart-wallets/AccountFactories/index.tsx index 11dbcc4e41c..1a8665e077a 100644 --- a/apps/dashboard/src/components/smart-wallets/AccountFactories/index.tsx +++ b/apps/dashboard/src/components/smart-wallets/AccountFactories/index.tsx @@ -40,7 +40,7 @@ function useFactories() { return factories.filter((f) => f !== null); }, - enabled: !!user?.address && isLoggedIn && !!contractListQuery.data?.length, + enabled: !!user?.address && isLoggedIn && !!contractListQuery.data, }); }