From 27e032a18028c0daf74b6b9793d66178dbf7c707 Mon Sep 17 00:00:00 2001 From: Maxime Beauchamp <15185355+baktun14@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:37:10 -0500 Subject: [PATCH] feat(wallet): fix custodial wallet init with managed wallet --- apps/deploy-web/src/hooks/useManagedWallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/deploy-web/src/hooks/useManagedWallet.ts b/apps/deploy-web/src/hooks/useManagedWallet.ts index 7eb002487..d60a2585a 100644 --- a/apps/deploy-web/src/hooks/useManagedWallet.ts +++ b/apps/deploy-web/src/hooks/useManagedWallet.ts @@ -24,7 +24,7 @@ export const useManagedWallet = () => { refetch } = useManagedWalletQuery(isBillingEnabled ? user?.id : undefined, { onSuccess: wallet => { - if (selectedWalletType === "custodial" && wallet && !userWallet.isWalletConnected) { + if (selectedWalletType === "custodial" && wallet && !userWallet.isWalletConnected && !userWallet.isWalletConnecting) { setSelectedWalletType("managed"); } }