Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/src/components/NotesCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const NotesCard = ({
toast.error("Failed to upvote!");
throw new Error(errorData.error || "Failed to update upvote");
} else {
toast.success(`Upvoted successfully!`);
toast.success(`${isLiked ?? 'Downvoted': 'Upvoted'} successfully!`);
}

// Optimistic UI update
Expand Down
Loading