refact(project-heading): comment unused code

This commit is contained in:
Daniel Klein 2024-09-12 11:56:48 +02:00
parent 83facaf232
commit e219638b5f
1 changed files with 6 additions and 6 deletions

View File

@ -5,13 +5,13 @@ const props = defineProps<{
project: Project
}>()
const availableSupport = computed(() => {
const filteredKeys = ['forum', 'discord', 'twitter', 'lens', 'farcaster', 'telegram']
if (typeof props.project.links === 'object' && (props.project.links !== null || props.project.links !== undefined))
return Object.keys(props.project.links).filter(key => filteredKeys.includes(key)).length
// const availableSupport = computed(() => {
// const filteredKeys = ['forum', 'discord', 'twitter', 'lens', 'farcaster', 'telegram']
// if (typeof props.project.links === 'object' && (props.project.links !== null || props.project.links !== undefined))
// return Object.keys(props.project.links).filter(key => filteredKeys.includes(key)).length
return 0
})
// return 0
// })
/**
* From data points