From 9cbd0ccffb446ec37c2b2e51593f1b81c5fc861c Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Sun, 29 Aug 2021 02:49:51 +0300 Subject: [PATCH] wip --- package.json | 2 +- src/index.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ba486b6..827b51f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kabbouchi/vue-web3", - "version": "0.2.13", + "version": "0.2.14", "description": "Vue web3 composition api", "license": "MIT", "main": "dist/cjs/index.js", diff --git a/src/index.ts b/src/index.ts index a1e987b..f51c3a7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,6 +85,11 @@ export const useWeb3 = () => { return } + if (!connector.value) { + handleDeactivate() + return + } + const cId = update.chainId === undefined ? undefined