Skip to content

Commit 4e2404e

Browse files
author
Sébastien Blin
committed
index: fix registered and run detection
1 parent 342422c commit 4e2404e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/pages/Index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</q-banner>
5555
<q-separator dark />
5656
<q-list dense separator class="bg-vdark text-vgrey">
57-
<q-item v-if="!status.accountAdded">
57+
<q-item v-if="!status.accountRegistered">
5858
<q-item-section>
5959
<!-- <q-btn outline rounded dense color="vgreen" icon="fas fa-user-plus" class="q-my-xs" @click="addNode()" label="Add">
6060
<q-tooltip content-class="bg-vgreen text-vdark" content-style="font-size: 16px" :offset="[10, 10]">Add the node</q-tooltip>
@@ -64,7 +64,7 @@
6464
</q-btn>
6565
</q-item-section>
6666
</q-item>
67-
<q-separator color="vseparator" v-if="!status.accountAdded" />
67+
<q-separator color="vseparator" v-if="!status.accountRegistered" />
6868
<q-item v-if="!status.accountRun">
6969
<q-item-section>
7070
<q-btn outline rounded dense color="vgreen" icon="fas fa-running" class="q-my-xs" @click="retreiveReward()" label="Run">

src/util/configManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ async function accountRegistered (accountName) {
129129

130130
async function accountRun (accountName) {
131131
try {
132-
const result = await Vue.prototype.$rpc.getTable('vtxdistribut', 'vtxdistribut', 'uptimes')
133-
let nodeStats = result.find(row => row.account === accountName)
132+
const result = await Vue.prototype.$rpc.getTable('vdexdposvote', 'vdexdposvote', 'producers')
133+
let nodeStats = result.find(row => row.owner === accountName)
134134
if (nodeStats) {
135135
store.commit('setAccountRun', true)
136136
} else {

0 commit comments

Comments
 (0)