diff --git a/src/pages/index.vue b/src/pages/index.vue index 16de169c..c0b30ebf 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -10,10 +10,10 @@ dashboard.$subscribe((mutation, state) => { localStorage.setItem('favorite', JSON.stringify(state.favorite)) }) const keywords = ref('') -const chains = computed(()=> { - if(keywords.value) { - return Object.values(dashboard.chains).filter( (x: ChainConfig)=>x.chainName.indexOf(keywords.value) > -1) - }else{ +const chains = computed(() => { + if (keywords.value) { + return Object.values(dashboard.chains).filter((x: ChainConfig) => x.chainName.indexOf(keywords.value) > -1) + } else { return Object.values(dashboard.chains) } }) @@ -21,23 +21,29 @@ const chain = useBlockchain()