clean code
This commit is contained in:
parent
9c26bcd220
commit
878e92ec92
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user