Skip to content

Commit

Permalink
Changed react async disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
gooxpf committed Feb 28, 2024
1 parent 81f8e1c commit 193e571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/solana/exports/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -38,8 +38,8 @@ export function useWeb3ModalProvider() {
}

export function useDisconnect() {
async function disconnect() {
await modal?.disconnect()
function disconnect() {
modal?.disconnect()
}

return {
Expand Down

0 comments on commit 193e571

Please sign in to comment.