From eea94a66fb92526059194b3a671481ae6d66c1c0 Mon Sep 17 00:00:00 2001 From: Tuditi Date: Mon, 26 Feb 2024 21:30:40 +0100 Subject: [PATCH] fix: locale --- .../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 }