mirror of https://github.com/dap-ps/discover.git
Merge branch 'deployment' of https://github.com/dap-ps/discover into deployment
This commit is contained in:
commit
9ce668371a
|
@ -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>
|
||||
)}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue