diff options
author | Dan <danjm.com@gmail.com> | 2018-05-01 00:03:49 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-01 00:03:49 +0800 |
commit | 41b609ab5ba185c8f5d7068aea8a638ae194ae66 (patch) | |
tree | 6f86bdc4d87690e75cb9f44d72a27526c110e6a9 /ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.container.js | |
parent | 5529ec6efd6fa659d790b4641e47cf247b7cfca7 (diff) | |
download | tangerine-wallet-browser-41b609ab5ba185c8f5d7068aea8a638ae194ae66.tar.gz tangerine-wallet-browser-41b609ab5ba185c8f5d7068aea8a638ae194ae66.tar.zst tangerine-wallet-browser-41b609ab5ba185c8f5d7068aea8a638ae194ae66.zip |
Fix amount max button.
Diffstat (limited to 'ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.container.js')
-rw-r--r-- | ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.container.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.container.js b/ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.container.js index 4211f16ab..b2ad1877a 100644 --- a/ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.container.js +++ b/ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.container.js @@ -32,8 +32,8 @@ function mapStateToProps (state) { function mapDispatchToProps (dispatch) { return { setAmountToMax: maxAmountDataObject => { - updateSendErrors({ amount: null }) - updateSendAmount(calcMaxAmount(maxAmountDataObject)) + dispatch(updateSendErrors({ amount: null })) + dispatch(updateSendAmount(calcMaxAmount(maxAmountDataObject))) }, setMaxModeTo: bool => dispatch(setMaxModeTo(bool)), } |