Skip to content

Commit d07ecb6

Browse files
committed
fixes link to profile page in homepagepostcard
1 parent 2ca6ec6 commit d07ecb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/HomePagePostCard.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function HomePagePostCard({ post, replyCountByPostId }) {
3131
alt="profile"
3232
className="rounded-full w-[60px] h-[60px]"
3333
onClick={() => {
34-
router.push(`/users/${user?.displayName}`);
34+
router.push(`/users/${post.user}`);
3535
}}
3636
/>
3737
) : (
@@ -40,7 +40,7 @@ export default function HomePagePostCard({ post, replyCountByPostId }) {
4040
alt="profile"
4141
className="rounded-full w-[60px] h-[60px]"
4242
onClick={() => {
43-
router.push(`/users/${user?.displayName}`);
43+
router.push(`/users/${post.user}`);
4444
}}
4545
/>
4646
)}

0 commit comments

Comments
 (0)