diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-09-16 01:24:05 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-09-16 01:24:05 +0800 |
commit | ef0b535d94d97827b4bfc471e4d950d90d637fa3 (patch) | |
tree | 1f59298dffe5992e3e1552b0460dd442aa3412c9 /ui/app/account-detail.js | |
parent | 17eb53cfcd77b3832f92533a53d82726d1e152e7 (diff) | |
download | tangerine-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.js | 3 |
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)) } } |