1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-02-24 23:18:19 +00:00

fix: use current snt amount instead of withdraw max

This commit is contained in:
Richard Ramos 2019-08-14 13:21:37 -04:00
parent 3cbadc70b9
commit 111f8d738c

@ -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) {