From 6ab78e4125d5f287b1e41f042ba1c7d56382be5f Mon Sep 17 00:00:00 2001 From: Johnson Date: Sat, 15 Jul 2023 23:13:50 +0800 Subject: [PATCH] fix: fix vue@3.3.4 warning about connectTimeout injection --- src/plugin.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index 7e8ab61..403ad43 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -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()