aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/account-detail.js
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-09-16 01:24:05 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-09-16 01:24:05 +0800
commitef0b535d94d97827b4bfc471e4d950d90d637fa3 (patch)
tree1f59298dffe5992e3e1552b0460dd442aa3412c9 /ui/app/account-detail.js
parent17eb53cfcd77b3832f92533a53d82726d1e152e7 (diff)
downloadtangerine-wallet-browser-ef0b535d94d97827b4bfc471e4d950d90d637fa3.tar
tangerine-wallet-browser-ef0b535d94d97827b4bfc471e4d950d90d637fa3.tar.gz
tangerine-wallet-browser-ef0b535d94d97827b4bfc471e4d950d90d637fa3.tar.bz2
tangerine-wallet-browser-ef0b535d94d97827b4bfc471e4d950d90d637fa3.tar.lz
tangerine-wallet-browser-ef0b535d94d97827b4bfc471e4d950d90d637fa3.tar.xz
tangerine-wallet-browser-ef0b535d94d97827b4bfc471e4d950d90d637fa3.tar.zst
tangerine-wallet-browser-ef0b535d94d97827b4bfc471e4d950d90d637fa3.zip
Drop the buy button in the confTx view if account does not have enough eth
Diffstat (limited to 'ui/app/account-detail.js')
-rw-r--r--ui/app/account-detail.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/account-detail.js b/ui/app/account-detail.js
index 41d1ff2da..01c7e8781 100644
--- a/ui/app/account-detail.js
+++ b/ui/app/account-detail.js
@@ -279,10 +279,11 @@ AccountDetailScreen.prototype.requestAccountExport = function () {
AccountDetailScreen.prototype.buyButtonDeligator = function () {
var props = this.props
+ var selected = props.address || Object.keys(props.accounts)[0]
if (this.props.accountDetail.subview === 'buyForm') {
props.dispatch(actions.backToAccountDetail(props.address))
} else {
- props.dispatch(actions.buyEthView())
+ props.dispatch(actions.buyEthView(selected))
}
}