Skip to content

Commit

Permalink
feat(wallet): fix custodial wallet init with managed wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Dec 18, 2024
1 parent 116f07e commit 27e032a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/deploy-web/src/hooks/useManagedWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 27e032a

Please sign in to comment.