Skip to content

Commit

Permalink
Fix log error
Browse files Browse the repository at this point in the history
  • Loading branch information
atmoner committed Jan 8, 2024
1 parent c7aa7ba commit 6fb0822
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
10 changes: 2 additions & 8 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,20 +197,16 @@ export default {
toggleTheme: () => theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
}
},
async beforeCreate() {
// await this.$store.dispatch("keplr/checkLogin");
// await this.$store.dispatch("data/getAllValidators");
await this.store.checkLogin()
console.log('this.store.logged',this.store.logged)
if (this.store.logged) {
await this.store.refresh()
} else {
this.$router.push({ path: "/login" });
}
},
mounted() {
setInterval(async () => {
await this.store.getPriceNow()
await this.store.getApr()
Expand All @@ -223,8 +219,6 @@ export default {
await this.store.getDelegations()
await this.store.getBlockNow()
}, 5000);
},
methods: {
logoutNow() {
Expand Down
4 changes: 2 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ export default defineNuxtConfig({
transpile: ['vuetify'],
},
vite: {
server: {
/* server: {
hmr: {
protocol: "wss",
clientPort: 443,
path: "hmr/",
},
},
}, */
define: {
'process.env.DEBUG': false,
},
Expand Down
2 changes: 1 addition & 1 deletion pages/validators/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/>
</v-avatar>
<span class="ml-4">{{ store.validatorDetails.description?.moniker }}</span>
{{ store.validatorDetails.status? }}
{{ store.validatorDetails?.status }}
<v-chip
class="ma-2 ml-4"
label
Expand Down
1 change: 1 addition & 0 deletions stores/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export const useAppStore = defineStore('app', {
} else {
returnValue = 0
}
console.log('SpendableBalances', returnValue)

let totalSupply = await queryBank.SupplyOf({ denom: cosmosConfig[this.chainSelected].coinLookup.chainDenom })
this.spendableBalances = returnValue
Expand Down

0 comments on commit 6fb0822

Please sign in to comment.