diff --git a/src/layouts/components/DefaultLayout.vue b/src/layouts/components/DefaultLayout.vue index 47b47604..e011bb62 100644 --- a/src/layouts/components/DefaultLayout.vue +++ b/src/layouts/components/DefaultLayout.vue @@ -20,10 +20,10 @@ const dashboard = useDashboard(); dashboard.initial(); const blockchain = useBlockchain(); -const current = ref("") +const current = ref(''); blockchain.$subscribe((m, s) => { - if(current.value != s.chainName) { - current.value = s.chainName + if (current.value != s.chainName) { + current.value = s.chainName; blockchain.initial(); } }); @@ -36,7 +36,7 @@ const changeOpen = (index: Number) => { sidebarOpen.value = !sidebarOpen.value; } }; -const showDiscord = window.location.host.search("ping.pub") > -1 +const showDiscord = window.location.host.search('ping.pub') > -1;