diff --git a/package.json b/package.json index 046aa3d..4092490 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kabbouchi/vue-web3", - "version": "0.2.10", + "version": "0.2.11", "description": "Vue web3 composition api", "license": "MIT", "main": "dist/cjs/index.js", diff --git a/src/index.ts b/src/index.ts index c604c9c..bd096a7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -80,6 +80,11 @@ export const useWeb3 = () => { } const handleUpdate = async (update: ConnectorUpdate): Promise => { + if (error.value) { + deactivate() + return + } + if (update.provider) { provider.value = update.provider }