From 26f613ec7cf51137e650ef7275537837c2a1a9dd Mon Sep 17 00:00:00 2001 From: 0xdevant <0xdevant@gmail.com> Date: Thu, 27 Jun 2024 19:00:42 +0800 Subject: [PATCH] fix: lint --- composables/useData.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composables/useData.ts b/composables/useData.ts index a2d6ad8..853fcd7 100644 --- a/composables/useData.ts +++ b/composables/useData.ts @@ -46,7 +46,8 @@ export const useData = defineStore('data', () => { const availableSupport = () => { const filteredKeys = ['forum', 'discord', 'twitter', 'lens', 'farcaster', 'telegram'] // if (typeof project.links === 'object' && (project.links !== null || project.links !== undefined)) - if (project.links == null || project.links == undefined) return 0; + if (project.links === null || project.links === undefined) + return 0 if (typeof project.links === 'object' && Object.keys(project.links).length > 0) return Object.keys(project.links).filter(key => filteredKeys.includes(key)).length