From 133cc8efda4ad3fe283f23bd528807e73ccc7b4e Mon Sep 17 00:00:00 2001 From: Renato Cardoso Date: Wed, 29 Mar 2023 10:26:14 +0200 Subject: [PATCH] chore: avoid throw error --- src/composables/useEthers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/composables/useEthers.ts b/src/composables/useEthers.ts index 621149b..d4406b1 100644 --- a/src/composables/useEthers.ts +++ b/src/composables/useEthers.ts @@ -101,7 +101,7 @@ async function activate(externalProvider: ExternalProvider) { const _balance = await signer?.value.getBalance() balance.value = _balance.toBigInt() } catch (error: any) { - throw new Error('Failed to update balance') + console.warn('Failed to update balance') } }, interval) }