Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
Fix problem
Browse files Browse the repository at this point in the history
  • Loading branch information
paveg committed Mar 22, 2024
1 parent 29e98ff commit 0f0be01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/posts/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default async function PostPage({ params }: PostProps) {
<ShareButtons
title={post.title}
url={fullUrl}
hashtags={[post.category]}
hashtags={post.category ? [post.category] : []}
/>
</div>
<Separator className="my-4" />
Expand All @@ -176,7 +176,7 @@ export default async function PostPage({ params }: PostProps) {
<ShareButtons
title={post.title}
url={fullUrl}
hashtags={[post.category]}
hashtags={post.category ? [post.category] : []}
/>
</article>
);
Expand Down
2 changes: 1 addition & 1 deletion components/share-buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { Button } from '@/components/ui/button';

type Props = {
title: title;
title: string;
url: string;
hashtags: string[];
};
Expand Down

0 comments on commit 0f0be01

Please sign in to comment.