Fixes downvote bubble to correct value

This commit is contained in:
andytudhope 2019-07-15 10:57:21 +02:00
parent b3a3022b74
commit e0456aecaa
1 changed files with 1 additions and 2 deletions

View File

@ -122,14 +122,13 @@ export const fetchVoteRatingAction = (dapp, isUpvote, sntValue) => {
return
}
} else {
// rating = parseInt(dapp.sntValue * 0.99, 10)
try {
const blockchain = await BlockchainSDK.getInstance()
const downVoteEffect = await blockchain.DiscoverService.downVoteCost(
dapp.id,
)
// balanceDownBy, votesRequired, cost
rating = parseInt(downVoteEffect.c, 10)
rating = parseInt(downVoteEffect.b, 10)
downVoteSntValue = downVoteEffect.c
} catch (e) {
return