Skip to content

Commit 2db77a0

Browse files
committed
fixed handleClick error
1 parent 423bfc9 commit 2db77a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/PromptCard.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const PromptCard = ({ post, handleTagClick, handleEdit, handleDelete }) => {
5151
</div>
5252
<p className="my-5 font-satoshi text-sm text-gray-700">{post.prompt}</p>
5353
<p className="font-inter text-sm blue_gradient cursor-pointe"
54-
onClick={() => handleClick && handleTagClick(post.tag)}>#{post.tag}</p>
54+
onClick={() => handleTagClick && handleTagClick(post.tag)}>#{post.tag}</p>
5555

5656
{session?.user.id === post.creator._id && pathName === "/profile" && (
5757
<div className="mt-5 pt-3 flex-center gap-4 border-t border-gray-100">

0 commit comments

Comments
 (0)