mirror of
https://github.com/dap-ps/discover.git
synced 2025-02-25 07:25:33 +00:00
fix: use current snt amount instead of withdraw max
This commit is contained in:
parent
3cbadc70b9
commit
111f8d738c
@ -75,7 +75,8 @@ class Withdraw extends React.Component {
|
|||||||
|
|
||||||
const currentSNTamount = dapp.sntValue
|
const currentSNTamount = dapp.sntValue
|
||||||
const dappsByCategory = dappState.getDappsByCategory(dapp.category)
|
const dappsByCategory = dappState.getDappsByCategory(dapp.category)
|
||||||
const afterVoteRating = withdrawMax - (parseInt(withdrawAmount, 10) || 0)
|
const afterVoteRating =
|
||||||
|
currentSNTamount - (parseInt(withdrawAmount, 10) || 0)
|
||||||
|
|
||||||
let catPosition = dappsByCategory.length
|
let catPosition = dappsByCategory.length
|
||||||
for (let i = 0; i < dappsByCategory.length; ++i) {
|
for (let i = 0; i < dappsByCategory.length; ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user