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').
feature/default_network_editable
Mark Stacey 4 years ago committed by GitHub
parent 85cf35b2d1
commit 88f1233852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/app/helpers/utils/transactions.util.js

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

Loading…
Cancel
Save