From 268332332eb73ac66d6d0eaecbe017456730e40e Mon Sep 17 00:00:00 2001 From: Sam Holmes Date: Thu, 5 Sep 2024 11:35:24 -0700 Subject: [PATCH] Silently fail refreshConnectedWallets in AccountCallbackManager This suppresses any errors from this background task (specifically the 404 error from FIO's fetchFioAddresses method). --- src/components/services/AccountCallbackManager.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/services/AccountCallbackManager.tsx b/src/components/services/AccountCallbackManager.tsx index 150ab70c1ff..9d4ff29a2b3 100644 --- a/src/components/services/AccountCallbackManager.tsx +++ b/src/components/services/AccountCallbackManager.tsx @@ -159,7 +159,7 @@ export function AccountCallbackManager(props: Props) { if (dirty.walletList) { // Update all wallets (hammer mode): datelog('Updating wallet list') - await dispatch(refreshConnectedWallets) + await dispatch(refreshConnectedWallets).catch(err => console.warn(err)) await snooze(1000) } },