From fe79a2ab11a4373d6d555c848e161ac1b420a9ab Mon Sep 17 00:00:00 2001 From: zenodeapp Date: Sun, 3 Dec 2023 20:40:50 +0100 Subject: [PATCH] Fixed searching in all chains (case insensitive + pretty name) --- src/pages/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/index.vue b/src/pages/index.vue index e24ee4e5..768b01b0 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -14,8 +14,10 @@ const dashboard = useDashboard(); const keywords = ref(''); const chains = computed(() => { if (keywords.value) { + const lowercaseKeywords = keywords.value.toLowerCase(); + return Object.values(dashboard.chains).filter( - (x: ChainConfig) => x.chainName.indexOf(keywords.value) > -1 + (x: ChainConfig) => x.prettyName.toLowerCase().indexOf(lowercaseKeywords) > -1 ); } else { return Object.values(dashboard.chains);