diff options
Diffstat (limited to 'ui/app/pages/confirm-transaction-switch/confirm-transaction-switch.container.js')
-rw-r--r-- | ui/app/pages/confirm-transaction-switch/confirm-transaction-switch.container.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/pages/confirm-transaction-switch/confirm-transaction-switch.container.js b/ui/app/pages/confirm-transaction-switch/confirm-transaction-switch.container.js index 7f2c36af2..c0b01a11e 100644 --- a/ui/app/pages/confirm-transaction-switch/confirm-transaction-switch.container.js +++ b/ui/app/pages/confirm-transaction-switch/confirm-transaction-switch.container.js @@ -1,5 +1,10 @@ import { connect } from 'react-redux' import ConfirmTransactionSwitch from './confirm-transaction-switch.component' +import { + TOKEN_METHOD_TRANSFER, + TOKEN_METHOD_APPROVE, + TOKEN_METHOD_TRANSFER_FROM, +} from '../../helpers/constants/transactions' const mapStateToProps = state => { const { @@ -16,6 +21,7 @@ const mapStateToProps = state => { methodData, fetchingData, isEtherTransaction: !toSmartContract, + isTokenMethod: [TOKEN_METHOD_APPROVE, TOKEN_METHOD_TRANSFER, TOKEN_METHOD_TRANSFER_FROM].includes(methodData.name) } } |