From d7e52e90209820b2e68e700aaab2c5b5650e611b Mon Sep 17 00:00:00 2001 From: Tuditi <45079109+Tuditi@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:38:02 +0100 Subject: [PATCH] fix: locale (#1998) --- .../components/popup/popups/ImportErc721TokenFormPopup.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop/components/popup/popups/ImportErc721TokenFormPopup.svelte b/packages/desktop/components/popup/popups/ImportErc721TokenFormPopup.svelte index ebc80a4c7a..7fea4089ad 100644 --- a/packages/desktop/components/popup/popups/ImportErc721TokenFormPopup.svelte +++ b/packages/desktop/components/popup/popups/ImportErc721TokenFormPopup.svelte @@ -38,7 +38,7 @@ validateEthereumAddress(tokenAddress) const persistedNft = await persistErc721Nft(tokenAddress, tokenId, networkId) if (!persistedNft) { - throw new Error(localize('popups.importTokens.errors.alreadyAdded')) + throw new Error(localize('popups.importToken.errors.alreadyAdded')) } addNewTrackedNftToActiveProfile(networkId, persistedNft.id, TokenTrackingStatus.ManuallyTracked) @@ -57,7 +57,7 @@ }) closePopup() } catch (err) { - tokenIdError = err + tokenIdError = err?.message ?? err } finally { busy = false }