aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2019-03-30 01:19:18 +0800
committerDan Miller <danjm.com@gmail.com>2019-03-30 01:53:55 +0800
commit05fd704fefe5805988b6041a3d09496615b0b869 (patch)
treeca47a4f00851aaac4decab105501076c768b3f34
parent8458873a2002b518075209276941878829d02162 (diff)
downloadtangerine-wallet-browser-05fd704fefe5805988b6041a3d09496615b0b869.tar
tangerine-wallet-browser-05fd704fefe5805988b6041a3d09496615b0b869.tar.gz
tangerine-wallet-browser-05fd704fefe5805988b6041a3d09496615b0b869.tar.bz2
tangerine-wallet-browser-05fd704fefe5805988b6041a3d09496615b0b869.tar.lz
tangerine-wallet-browser-05fd704fefe5805988b6041a3d09496615b0b869.tar.xz
tangerine-wallet-browser-05fd704fefe5805988b6041a3d09496615b0b869.tar.zst
tangerine-wallet-browser-05fd704fefe5805988b6041a3d09496615b0b869.zip
Check token name constants against the lower case methodData name in conf tx switch container.
-rw-r--r--ui/app/pages/confirm-transaction-switch/confirm-transaction-switch.container.js2
1 files changed, 1 insertions, 1 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 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()),
}
}