1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

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

This commit is contained in:
Dan Miller 2019-03-29 14:49:18 -02:30
parent 8458873a20
commit 05fd704fef

View File

@ -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()),
} }
} }