Skip to content

Commit

Permalink
Fixeed on chain data not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 committed Jul 27, 2023
1 parent 2fea01c commit e4bdfe9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/components/dapp-staking/my-staking/OnChainData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:key="index"
v-close-popup
clickable
@click="filterBy = item"
@click="changeFilter(item)"
>
<q-item-section>
<q-item-label>{{ $t(item) }}</q-item-label>
Expand Down Expand Up @@ -232,7 +232,6 @@ export default defineComponent({
return '';
}
return '0';
} catch (error) {
return '0';
}
Expand Down Expand Up @@ -317,8 +316,17 @@ export default defineComponent({
}, 700);
};
const changeFilter = (filter: Filter): void => {
filterBy.value = filter;
page.value = 1;
changePage(false);
};
watchEffect(setDataArray);
watchEffect(handlePageUpdate);
// The below cause problem with not showing the data (after uplift to a new Quasar version) when accessing the page directly
// watchEffect(handlePageUpdate);
watch(
[currentNetworkName],
async () => {
Expand Down Expand Up @@ -347,6 +355,7 @@ export default defineComponent({
getBorderStyle,
Filter,
goDappPageLink,
changeFilter,
};
},
});
Expand Down

0 comments on commit e4bdfe9

Please sign in to comment.