diff --git a/src/modules/[chain]/index.vue b/src/modules/[chain]/index.vue index 730f1ac0..99ac8b89 100644 --- a/src/modules/[chain]/index.vue +++ b/src/modules/[chain]/index.vue @@ -13,8 +13,8 @@ import ProposalListItem from '@/components/ProposalListItem.vue'; const blockchain = useBlockchain(); const store = useIndexModule(); -const walletStore = useWalletStore() -const format = useFormatter() +const walletStore = useWalletStore(); +const format = useFormatter(); const coinInfo = computed(() => { return store.coinInfo; @@ -22,7 +22,7 @@ const coinInfo = computed(() => { onMounted(() => { store.loadDashboard(); - walletStore.loadMyAsset() + walletStore.loadMyAsset(); }); const ticker = computed(() => store.coinInfo.tickers[store.tickerIndex]); @@ -33,7 +33,7 @@ blockchain.$subscribe((m, s) => { ['chainName', 'endpoint'].includes(m.events.key) ) { store.loadDashboard(); - walletStore.loadMyAsset() + walletStore.loadMyAsset(); } }); function shortName(name: string, id: string) { @@ -68,19 +68,19 @@ const comLinks = [ // wallet box const change = computed(() => { - const token = walletStore.balanceOfStakingToken - return token? format.priceChanges(token.denom) : 0 -}) -const color= computed(() => { - switch(true) { - case change.value > 0: - return "text-green-600" + const token = walletStore.balanceOfStakingToken; + return token ? format.priceChanges(token.denom) : 0; +}); +const color = computed(() => { + switch (true) { + case change.value > 0: + return 'text-green-600'; case change.value === 0: - return "text-grey-500" + return 'text-grey-500'; case change.value < 0: - return "text-red-600" + return 'text-red-600'; } -}) +});