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:
parent
8458873a20
commit
05fd704fef
@ -21,7 +21,7 @@ const mapStateToProps = state => {
|
||||
methodData,
|
||||
fetchingData,
|
||||
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…
Reference in New Issue
Block a user