From 111f8d738c492f8afa1f8133ad5c69125e3a8a1d Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 14 Aug 2019 13:21:37 -0400 Subject: [PATCH] fix: use current snt amount instead of withdraw max --- src/modules/Withdraw/Withdraw.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/Withdraw/Withdraw.jsx b/src/modules/Withdraw/Withdraw.jsx index d8c8ef1..a469344 100644 --- a/src/modules/Withdraw/Withdraw.jsx +++ b/src/modules/Withdraw/Withdraw.jsx @@ -75,7 +75,8 @@ class Withdraw extends React.Component { const currentSNTamount = dapp.sntValue const dappsByCategory = dappState.getDappsByCategory(dapp.category) - const afterVoteRating = withdrawMax - (parseInt(withdrawAmount, 10) || 0) + const afterVoteRating = + currentSNTamount - (parseInt(withdrawAmount, 10) || 0) let catPosition = dappsByCategory.length for (let i = 0; i < dappsByCategory.length; ++i) {