From 730dd2c8e530e5db7c42a3a9311be73ad3bb79b8 Mon Sep 17 00:00:00 2001 From: Tempe Techie <95053628+tempe-techie@users.noreply.github.com> Date: Fri, 4 Oct 2024 17:24:59 +0200 Subject: [PATCH] watchAddressChanged added --- layouts/default.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/layouts/default.vue b/layouts/default.vue index dbd3649..bd5e71e 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -302,6 +302,13 @@ export default { const { $config, $getFallbackProvider } = useNuxtApp() + watchAddressChanged(async wallet => { + setWallet(wallet.provider) + await fetchBalance() + + fetchUserDomain() + }) + watchWalletChanged(async wallet => { setWallet(wallet.provider) await fetchBalance()