aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.container.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-01 00:03:49 +0800
committerDan <danjm.com@gmail.com>2018-05-01 00:03:49 +0800
commit41b609ab5ba185c8f5d7068aea8a638ae194ae66 (patch)
tree6f86bdc4d87690e75cb9f44d72a27526c110e6a9 /ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.container.js
parent5529ec6efd6fa659d790b4641e47cf247b7cfca7 (diff)
downloadtangerine-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.js4
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)),
}