Skip to content

Commit

Permalink
Update post.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
thebkht authored Oct 27, 2023
1 parent 6aa58d6 commit 06ee2a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/blog/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ export default function Post({ post, author, sessionUser, tags }: { post: any, a
<div className="article__tags space-x-2 mx-auto">
{tags.map((tag: any) => (
<Link href={`/tags/${tag.tag.name}`} key={tag.tag.id}>
<<Link href={`/tags/${tag.name}`} key={tag.id}>
<Badge className="bg-primary/30 text-primary px-2.5 my-1 mr-1 hover:text-primary-foreground hover:bg-primary" variant={"secondary"}>
<Badge className="bg-primary/30 text-primary px-2.5 my-1 mr-1 hover:text-primary-foreground hover:bg-primary" variant={"secondary"}>
{
//replace - with space
tag.tag.name.replace(/-/g, " ")
Expand Down

0 comments on commit 06ee2a1

Please sign in to comment.