Check token name constants against the lower case methodData name in conf tx switch container.

feature/default_network_editable
Dan Miller 6 years ago
parent 8458873a20
commit 05fd704fef
  1. 2
      ui/app/pages/confirm-transaction-switch/confirm-transaction-switch.container.js

@ -21,7 +21,7 @@ const mapStateToProps = state => {
methodData, methodData,
fetchingData, fetchingData,
isEtherTransaction: !toSmartContract, isEtherTransaction: !toSmartContract,
isTokenMethod: [TOKEN_METHOD_APPROVE, TOKEN_METHOD_TRANSFER, TOKEN_METHOD_TRANSFER_FROM].includes(methodData.name) isTokenMethod: [TOKEN_METHOD_APPROVE, TOKEN_METHOD_TRANSFER, TOKEN_METHOD_TRANSFER_FROM].includes(methodData.name && methodData.name.toLowerCase()),
} }
} }

Loading…
Cancel
Save