From 68b7d41d93581f7233cdbfa4cfbaaf92f54714b2 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Wed, 24 Apr 2019 16:53:01 +0200 Subject: [PATCH] remove token already used msg --- .../Wallet/views/Account/Summary/common.messages.js | 4 ---- .../Wallet/views/Account/Summary/ethereum/index.js | 10 +--------- translations/master.json | 8 -------- 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/views/Wallet/views/Account/Summary/common.messages.js b/src/views/Wallet/views/Account/Summary/common.messages.js index 1dbbe8ae..63422066 100644 --- a/src/views/Wallet/views/Account/Summary/common.messages.js +++ b/src/views/Wallet/views/Account/Summary/common.messages.js @@ -23,10 +23,6 @@ const definedMessages: Messages = defineMessages({ id: 'TR_TOKEN_NOT_FOUND', defaultMessage: 'Token not found', }, - TR_ALREADY_USED: { - id: 'TR_ALREADY_USED', - defaultMessage: 'Already used', - }, TR_HISTORY: { id: 'TR_HISTORY', defaultMessage: 'History', diff --git a/src/views/Wallet/views/Account/Summary/ethereum/index.js b/src/views/Wallet/views/Account/Summary/ethereum/index.js index 6d1b0d4a..565bcd6d 100644 --- a/src/views/Wallet/views/Account/Summary/ethereum/index.js +++ b/src/views/Wallet/views/Account/Summary/ethereum/index.js @@ -156,15 +156,7 @@ const AccountSummary = (props: Props) => { } }} loadOptions={input => props.loadTokens(input, account.network)} - formatOptionLabel={option => { - const isAdded = tokens.find(t => t.symbol === option.symbol); - if (isAdded) { - return `${option.name} (${props.intl.formatMessage( - l10nSummaryMessages.TR_ALREADY_USED - )})`; - } - return option.name; - }} + formatOptionLabel={option => option.name} getOptionLabel={option => option.name} getOptionValue={option => option.symbol} /> diff --git a/translations/master.json b/translations/master.json index 91087d3d..8e42c6e0 100644 --- a/translations/master.json +++ b/translations/master.json @@ -1615,14 +1615,6 @@ ] } }, - "TR_ALREADY_USED": { - "source": "Already used", - "meta": { - "occurrences": [ - "src/views/Wallet/views/Account/Summary/common.messages.js" - ] - } - }, "TR_HISTORY": { "source": "History", "meta": {