Merge branch 'deployment' of https://github.com/dap-ps/discover into deployment

This commit is contained in:
George Spasov 2019-07-15 12:50:55 +03:00
commit 9ce668371a
2 changed files with 3 additions and 4 deletions

View File

@ -98,10 +98,10 @@ const ProfileContent = ({
{editable && (
<div className={styles.actions}>
<div className={styles.button} onClick={onClickUpdateMetadata}>
Edit metadata
Edit
</div>
<div className={styles.button} onClick={onClickWithdraw}>
Withdraw SNT
Withdraw
</div>
</div>
)}

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