From d40c5aa572836a32119675c633842fdc6abd5f7b Mon Sep 17 00:00:00 2001 From: EtherWizard33 Date: Wed, 15 Jan 2025 12:57:40 +0300 Subject: [PATCH] fix(12758): As requested, replace logging with swallowed error. It seems this error is 'expected', and was creating traffic on sentry which is intended for errors. --- .../Views/AccountPermissions/AccountPermissions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/Views/AccountPermissions/AccountPermissions.tsx b/app/components/Views/AccountPermissions/AccountPermissions.tsx index 90e535c3442..c5195479c98 100755 --- a/app/components/Views/AccountPermissions/AccountPermissions.tsx +++ b/app/components/Views/AccountPermissions/AccountPermissions.tsx @@ -155,7 +155,7 @@ const AccountPermissions = (props: AccountPermissionsProps) => { ); } } catch (e) { - Logger.error(e as Error, 'Error getting permitted chains caveat'); + // no-op } const networks = Object.entries(networkConfigurations).map( @@ -812,7 +812,7 @@ const AccountPermissions = (props: AccountPermissionsProps) => { ); } } catch (e) { - Logger.error(e as Error, 'Error getting permitted chains caveat'); + // no-op } // Add current chainId if no chains are permitted yet