From 05fd704fefe5805988b6041a3d09496615b0b869 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Fri, 29 Mar 2019 14:49:18 -0230 Subject: [PATCH] Check token name constants against the lower case methodData name in conf tx switch container. --- .../confirm-transaction-switch.container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c0b01a11e..8213f0964 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 @@ -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()), } }