Skip to content

Commit 5cf5c35

Browse files
committed
Update check if the node is running feature.
1 parent 5ffdd4d commit 5cf5c35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/Index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ export default {
449449
this.interval = setInterval(() => this.refresh(), 300000)
450450
this.identity.time = Math.floor((new Date()).getTime() / 1000)
451451
this.refr = setInterval(() => this.refresher(), 60000)
452+
this.check = setInterval(() => this.checkNodeRun(), 600000)
452453
},
453454
methods: {
454455
async getAccountResources () {
@@ -547,11 +548,10 @@ export default {
547548
this.getAccountResources()
548549
this.getUptime()
549550
this.getRank()
550-
this.checkNodeRun()
551551
}
552552
},
553553
checkNodeRun () {
554-
if (this.nodes.length > 0 && !this.nodes.some(item => item.account === this.identity.account_name)) {
554+
if (this.identity.account_name && this.nodes.length > 0 && !this.nodes.some(item => item.account === this.identity.account_name)) {
555555
this.$userError('Oops, I can\'t see your node in the list. Try to update the list or check your node.', 'Check node running action')
556556
}
557557
},
@@ -894,7 +894,7 @@ export default {
894894
})
895895
this.$userResult('Voted successfully!', result)
896896
this.voting_list = []
897-
setInterval(() => this.refresher(), 5000)
897+
setInterval(() => this.refresher(), 3000)
898898
} catch (error) {
899899
this.$userError(error, 'Vote action')
900900
}

0 commit comments

Comments
 (0)