clean code

This commit is contained in:
liangping 2021-12-14 12:30:55 +08:00
parent 9c26bcd220
commit 878e92ec92

View File

@ -173,7 +173,6 @@ export default {
selectValue(v) {
this.address = v.delegator_address
this.selectedValidator = v.validator.validator
console.log(v, this.address, this.selectedValidator)
return v
},
findMoniker(chain, addr) {
@ -186,7 +185,6 @@ export default {
},
findReward(delegator, validator) {
const reward = this.rewards[delegator]?.rewards.find(x => x.validator_address === validator) || null
console.log(reward, delegator, validator)
if (reward) {
return tokenFormatter(reward.reward)
}