diff options
Send refactor: fix amount max button for tokens.
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/send_/send.component.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ui/app/components/send_/send.component.js b/ui/app/components/send_/send.component.js index 4cfac1bde..49731ff6a 100644 --- a/ui/app/components/send_/send.component.js +++ b/ui/app/components/send_/send.component.js @@ -82,7 +82,7 @@ export default class SendTransactionScreen extends PersistentForm { } = prevProps const uninitialized = [prevBalance, prevGasTotal].every(n => n === null) - + console.log(`@#@# uninitialized`, uninitialized); if (!uninitialized) { const amountErrorRequiresUpdate = doesAmountErrorRequireUpdate({ balance, @@ -120,6 +120,17 @@ export default class SendTransactionScreen extends PersistentForm { } componentWillMount () { + const { + from: { address, balance }, + selectedToken, + tokenContract, + updateSendTokenBalance, + } = this.props + updateSendTokenBalance({ + selectedToken, + tokenContract, + address, + }) this.updateGas() } |