mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-01 21:58:45 +00:00
Merge pull request #533 from trezor/fix/remove-token-already-used
Fix/remove token already used msg
This commit is contained in:
commit
23d9efe536
@ -23,10 +23,6 @@ const definedMessages: Messages = defineMessages({
|
|||||||
id: 'TR_TOKEN_NOT_FOUND',
|
id: 'TR_TOKEN_NOT_FOUND',
|
||||||
defaultMessage: 'Token not found',
|
defaultMessage: 'Token not found',
|
||||||
},
|
},
|
||||||
TR_ALREADY_USED: {
|
|
||||||
id: 'TR_ALREADY_USED',
|
|
||||||
defaultMessage: 'Already used',
|
|
||||||
},
|
|
||||||
TR_HISTORY: {
|
TR_HISTORY: {
|
||||||
id: 'TR_HISTORY',
|
id: 'TR_HISTORY',
|
||||||
defaultMessage: 'History',
|
defaultMessage: 'History',
|
||||||
|
@ -156,15 +156,7 @@ const AccountSummary = (props: Props) => {
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
loadOptions={input => props.loadTokens(input, account.network)}
|
loadOptions={input => props.loadTokens(input, account.network)}
|
||||||
formatOptionLabel={option => {
|
formatOptionLabel={option => option.name}
|
||||||
const isAdded = tokens.find(t => t.symbol === option.symbol);
|
|
||||||
if (isAdded) {
|
|
||||||
return `${option.name} (${props.intl.formatMessage(
|
|
||||||
l10nSummaryMessages.TR_ALREADY_USED
|
|
||||||
)})`;
|
|
||||||
}
|
|
||||||
return option.name;
|
|
||||||
}}
|
|
||||||
getOptionLabel={option => option.name}
|
getOptionLabel={option => option.name}
|
||||||
getOptionValue={option => option.symbol}
|
getOptionValue={option => option.symbol}
|
||||||
/>
|
/>
|
||||||
|
@ -1615,14 +1615,6 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"TR_ALREADY_USED": {
|
|
||||||
"source": "Already used",
|
|
||||||
"meta": {
|
|
||||||
"occurrences": [
|
|
||||||
"src/views/Wallet/views/Account/Summary/common.messages.js"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"TR_HISTORY": {
|
"TR_HISTORY": {
|
||||||
"source": "History",
|
"source": "History",
|
||||||
"meta": {
|
"meta": {
|
||||||
|
Loading…
Reference in New Issue
Block a user