Skip to content

Commit

Permalink
fix: fix vue@3.3.4 warning about connectTimeout injection
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson86tw committed Jul 15, 2023
1 parent 82eccb7 commit 6ab78e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ export const VueDapp: Plugin = {
availableNetworks.value = { ...NETWORK_DETAILS, ...options.networks }
}

options?.connectTimeout &&
app.provide('connectTimeout', options?.connectTimeout)

app.provide('connectTimeout', options?.connectTimeout || undefined)
app.provide('autoConnect', options?.autoConnect || false)
if (options?.autoConnect && options?.persistDisconnect === false) {
const { persistDisconnect } = useWallet()
Expand Down

0 comments on commit 6ab78e4

Please sign in to comment.