Skip to content

Commit 6569b0f

Browse files
committed
Fix logic
1 parent 3675606 commit 6569b0f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/pages/[locale]/developers/tutorials.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ const TutorialPage = ({
288288
<Flex className="mb-4 max-w-full flex-wrap items-center gap-2">
289289
<div className="flex w-full flex-wrap gap-2 lg:grid lg:grid-cols-3 lg:gap-4 xl:grid-cols-4 2xl:grid-cols-5">
290290
{Object.entries(allTags).map(([tagName, tagCount], idx) => {
291+
if (tagCount <= 1) return null
292+
291293
const name = `${tagName} (${tagCount})`
292294
const isActive = selectedTags.includes(tagName)
293295
return (
@@ -374,11 +376,9 @@ const TutorialPage = ({
374376
)}
375377
</Text>
376378
<Text className="text-body-medium">{tutorial.description}</Text>
377-
{(tutorial.tags ?? []).length > 1 && (
378-
<Flex className="w-full flex-wrap">
379-
<TutorialTags tags={tutorial.tags ?? []} />
380-
</Flex>
381-
)}
379+
<Flex className="w-full flex-wrap">
380+
<TutorialTags tags={tutorial.tags ?? []} />
381+
</Flex>
382382
</LinkFlex>
383383
)
384384
})}

0 commit comments

Comments
 (0)