diff --git a/packages/abstraxion/src/hooks/useAbstraxionSigningClient.ts b/packages/abstraxion/src/hooks/useAbstraxionSigningClient.ts index db4a850c..4020a5f4 100644 --- a/packages/abstraxion/src/hooks/useAbstraxionSigningClient.ts +++ b/packages/abstraxion/src/hooks/useAbstraxionSigningClient.ts @@ -27,14 +27,6 @@ export const useAbstraxionSigningClient = (): { } return wallet; }; - useEffect(() => { - (async () => { - const wallet = await getTempAccount(); - if (wallet) { - setSignArbWallet(wallet); - } - })(); - }, []); const [abstractClient, setAbstractClient] = useState< GranteeSignerClient | undefined @@ -70,6 +62,11 @@ export const useAbstraxionSigningClient = (): { }, ); + const wallet = await getTempAccount(); + if (wallet) { + setSignArbWallet(wallet); + } + setAbstractClient(directClient); } catch (error) { console.log("Something went wrong: ", error);