diff --git a/packages/bridge-ui/src/components/AddTokenToWallet.svelte b/packages/bridge-ui/src/components/AddTokenToWallet.svelte index 47814ee2ab9..e0d409e072f 100644 --- a/packages/bridge-ui/src/components/AddTokenToWallet.svelte +++ b/packages/bridge-ui/src/components/AddTokenToWallet.svelte @@ -27,7 +27,7 @@ }, }); } catch (e) { - if (e.code === 4001) { + if (e.code === 4001 || e?.data?.originalError?.code === 4001) { warningToast('Adding token has been rejected.'); } else { errorToast('Failed to add token to wallet');