From 193e571008e7b9623ed66fce7e444980e6e443a8 Mon Sep 17 00:00:00 2001 From: gooxp Date: Wed, 28 Feb 2024 18:57:58 +0400 Subject: [PATCH] Changed react async disconnect --- packages/solana/exports/react.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/solana/exports/react.tsx b/packages/solana/exports/react.tsx index 81997a4e6d..384d2700ff 100644 --- a/packages/solana/exports/react.tsx +++ b/packages/solana/exports/react.tsx @@ -26,7 +26,7 @@ export function createWeb3Modal(options: Web3ModalOptions) { export function useWeb3ModalProvider() { const { provider, providerType, connection } = useSnapshot(SolStoreUtil.state) - const walletProvider = provider as any + const walletProvider = provider const walletProviderType = providerType @@ -38,8 +38,8 @@ export function useWeb3ModalProvider() { } export function useDisconnect() { - async function disconnect() { - await modal?.disconnect() + function disconnect() { + modal?.disconnect() } return {