aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send-v2.js
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-04-16 11:37:42 +0800
committerbitpshr <mail@bitpshr.net>2018-04-16 11:46:40 +0800
commita350e80feea6747a5e10088ac6ec15171a590a65 (patch)
tree93be19006b469678ffaec07b754104827dd1e61a /ui/app/send-v2.js
parent3afe76bcba5eb1b84c748b13b61d1a22bed40bd3 (diff)
downloadtangerine-wallet-browser-a350e80feea6747a5e10088ac6ec15171a590a65.tar
tangerine-wallet-browser-a350e80feea6747a5e10088ac6ec15171a590a65.tar.gz
tangerine-wallet-browser-a350e80feea6747a5e10088ac6ec15171a590a65.tar.bz2
tangerine-wallet-browser-a350e80feea6747a5e10088ac6ec15171a590a65.tar.lz
tangerine-wallet-browser-a350e80feea6747a5e10088ac6ec15171a590a65.tar.xz
tangerine-wallet-browser-a350e80feea6747a5e10088ac6ec15171a590a65.tar.zst
tangerine-wallet-browser-a350e80feea6747a5e10088ac6ec15171a590a65.zip
Fetch token prices based on contract address
Diffstat (limited to 'ui/app/send-v2.js')
-rw-r--r--ui/app/send-v2.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index d0c28caa2..12cf55f62 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -89,14 +89,14 @@ SendTransactionScreen.prototype.updateSendTokenBalance = function (usersToken) {
SendTransactionScreen.prototype.componentWillMount = function () {
const {
- updateTokenExchangeRate,
+ updateContractExchangeRate,
selectedToken = {},
} = this.props
- const { symbol } = selectedToken || {}
+ const { address } = selectedToken || {}
- if (symbol) {
- updateTokenExchangeRate(symbol)
+ if (address) {
+ updateContractExchangeRate(address)
}
this.updateGas()