mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
fix: lint
This commit is contained in:
parent
c8035c6ff9
commit
26f613ec7c
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ export const useData = defineStore('data', () => {
|
||||||
const availableSupport = () => {
|
const availableSupport = () => {
|
||||||
const filteredKeys = ['forum', 'discord', 'twitter', 'lens', 'farcaster', 'telegram']
|
const filteredKeys = ['forum', 'discord', 'twitter', 'lens', 'farcaster', 'telegram']
|
||||||
// if (typeof project.links === 'object' && (project.links !== null || project.links !== undefined))
|
// 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)
|
if (typeof project.links === 'object' && Object.keys(project.links).length > 0)
|
||||||
return Object.keys(project.links).filter(key => filteredKeys.includes(key)).length
|
return Object.keys(project.links).filter(key => filteredKeys.includes(key)).length
|
||||||
|
|
Loading…
Reference in a new issue