From b59d6f30b4632ccd08234293b31802c7560c9426 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 14 Aug 2019 12:56:57 -0400 Subject: [PATCH] fix: withdraw amount --- src/modules/Withdraw/Withdraw.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/Withdraw/Withdraw.jsx b/src/modules/Withdraw/Withdraw.jsx index 2d9b3a0..d8c8ef1 100644 --- a/src/modules/Withdraw/Withdraw.jsx +++ b/src/modules/Withdraw/Withdraw.jsx @@ -38,8 +38,9 @@ class Withdraw extends React.Component { } onWithdraw() { - const { dapp, sntValue, onWithdraw } = this.props - onWithdraw(dapp, parseInt(sntValue, 10)) + const { dapp, onWithdraw } = this.props + const { withdrawAmount } = this.state + onWithdraw(dapp, parseInt(withdrawAmount, 10)) } handleSNTChange(e) {