diff --git a/src/pages/api/accounts-data.ts b/src/pages/api/accounts-data.ts index e326089c1..0c9af8afb 100644 --- a/src/pages/api/accounts-data.ts +++ b/src/pages/api/accounts-data.ts @@ -149,7 +149,12 @@ async function fetchAccountsData(addresses: string[], method: 'POST' | 'GET') { ) } - const domains = await getEnsNames(evmAddressesHuman) + let domains: Record = {} + try { + domains = await getEnsNames(evmAddressesHuman) + } catch (err) { + console.error('Error fetching ENS names', err) + } const needToFetchIdsPromise = addresses.map(async (address, i) => { const evmAddress = evmAddressesHuman[i] diff --git a/src/stores/my-account.tsx b/src/stores/my-account.tsx index 492b49306..91640cf3c 100644 --- a/src/stores/my-account.tsx +++ b/src/stores/my-account.tsx @@ -26,7 +26,7 @@ import { waitNewBlock } from '@/utils/blockchain' import { currentNetwork } from '@/utils/network' import { wait } from '@/utils/promise' import { LocalStorage, LocalStorageAndForage } from '@/utils/storage' -import { isWebNotificationsEnabled } from '@/utils/window' +import { getIsInIframe, isWebNotificationsEnabled } from '@/utils/window' import { Wallet, WalletAccount, getWallets } from '@talismn/connect-wallets' import dayjs from 'dayjs' import toast from 'react-hot-toast' @@ -635,6 +635,15 @@ export async function enableWallet({ if (typeof unsub === 'function') unsub() } } catch (err) { + if (getIsInIframe() && preferredWallet.title === 'Polkadot.js') { + toast.custom((t) => ( + + )) + } console.error('Error enabling wallet', err) onError(err) }