mirror of
https://github.com/Instadapp/vue-web3.git
synced 2024-07-29 21:48:25 +00:00
wip
This commit is contained in:
parent
cc8faf253d
commit
74ce6d7a55
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@kabbouchi/vue-web3",
|
"name": "@kabbouchi/vue-web3",
|
||||||
"version": "0.2.10",
|
"version": "0.2.11",
|
||||||
"description": "Vue web3 composition api",
|
"description": "Vue web3 composition api",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "dist/cjs/index.js",
|
"main": "dist/cjs/index.js",
|
||||||
|
|
|
@ -80,6 +80,11 @@ export const useWeb3 = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleUpdate = async (update: ConnectorUpdate): Promise<void> => {
|
const handleUpdate = async (update: ConnectorUpdate): Promise<void> => {
|
||||||
|
if (error.value) {
|
||||||
|
deactivate()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (update.provider) {
|
if (update.provider) {
|
||||||
provider.value = update.provider
|
provider.value = update.provider
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user