Skip to content

Commit

Permalink
fix: more readable version of node version retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodressel committed Feb 14, 2024
1 parent 474f4ad commit 73eb9e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/AboutModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ export default {
},
async mounted() {
await this.$watchUntilTruly(() => this.$store.state.sdk);
this.nodeVersion = (await this.sdk.getNodesInPool()).find((node) => node.name
=== this.sdk.selectedNodeName)?.version || '-';
try {
this.nodeVersion = (await this.sdk.api.getNodeInfo()).version;
} catch (e) {
this.nodeVersion = '-';
}
this.height = await this.sdk.getHeight();
this.pollHeight = setInterval(async () => {
this.height = await this.sdk.getHeight();
Expand Down

0 comments on commit 73eb9e0

Please sign in to comment.