Skip to content

Commit

Permalink
use correct category for approve
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-decker committed May 23, 2020
1 parent a7dcdaa commit d336297
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/app/hooks/useTransactionDisplayData.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
TRANSACTION_CATEGORY_SEND,
TRANSACTION_CATEGORY_SIGNATURE_REQUEST,
PENDING_STATUS,
TOKEN_METHOD_APPROVE,
} from '../helpers/constants/transactions'
import { useCurrencyDisplay } from './useCurrencyDisplay'
import { useTokenDisplayValue } from './useTokenDisplayValue'
Expand Down Expand Up @@ -106,7 +107,7 @@ export function useTransactionDisplayData (transactionGroup) {
category = TRANSACTION_CATEGORY_SIGNATURE_REQUEST
title = t('signatureRequest')
subtitle = origin || ''
} else if (transactionCategory === APPROVED_STATUS) {
} else if (transactionCategory === TOKEN_METHOD_APPROVE) {
category = TRANSACTION_CATEGORY_APPROVAL
title = t('approveSpendLimit')
subtitle = initialTransaction.origin
Expand Down

0 comments on commit d336297

Please sign in to comment.