1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix transferFrom localized message (#10395)

The `transferFrom` localized message has been unused at least since the
transaction list redesign was implemented. The `transactionCategory`
has been used directly as the localized message key since then. For
most of the other categories this was fine, but for `transferFrom` the
message differs slightly from the category (the category is
`transferfrom`, with a lower-cased 'f').
This commit is contained in:
Mark Stacey 2021-02-08 14:00:27 -03:30 committed by GitHub
parent 85cf35b2d1
commit 88f1233852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,7 +220,7 @@ export function getTransactionCategoryTitle(t, transactionCategory) {
return t('transfer');
}
case TRANSACTION_CATEGORIES.TOKEN_METHOD_TRANSFER_FROM: {
return t('transferfrom');
return t('transferFrom');
}
case TRANSACTION_CATEGORIES.TOKEN_METHOD_APPROVE: {
return t('approve');