From e562a91b2e9463e93d2122f68f12565e7e3deb01 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Sun, 29 Aug 2021 01:19:14 +0300 Subject: [PATCH] wip --- package.json | 2 +- src/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9efa605..8a52a2d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kabbouchi/vue-web3", - "version": "0.2.7", + "version": "0.2.8", "description": "Vue web3 composition api", "license": "MIT", "main": "dist/cjs/index.js", diff --git a/src/index.ts b/src/index.ts index 533a44c..269e87e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,7 +85,10 @@ export const useWeb3 = () => { update.chainId === undefined ? undefined : normalizeChainId(update.chainId) - account.value = update.account + account.value = + typeof update.account === 'string' + ? normalizeAccount(update.account) + : update.account } const handleError = (e: Error): void => {