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