Skip to content

Commit e351065

Browse files
authored
Merge pull request #15091 from ethereum/fixTutorialTags
Remove tags with single instance
2 parents 8368d35 + 4d89a7a commit e351065

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 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 as number) <= 1) return null
292+
291293
const name = `${tagName} (${tagCount})`
292294
const isActive = selectedTags.includes(tagName)
293295
return (

0 commit comments

Comments
 (0)