Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 1dc257d

Browse files
committed
fix see all link on profile page
1 parent d3448c9 commit 1dc257d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/PostsCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const PostsCard = ({
5757
const canAdd = allowAdd || Boolean(chapterId);
5858
const href = removeTrailingSlash(pathname) || '';
5959
const as = removeTrailingSlash(asPath) || '';
60-
const listSlug = list || category;
60+
const listSlug = list || category?.[0] || 'posts';
6161

6262
/**
6363
* React runs a shallow comparison only, so we're converting

0 commit comments

Comments
 (0)