Skip to content

Commit

Permalink
fix dislikes path
Browse files Browse the repository at this point in the history
  • Loading branch information
shakhzodkudratov committed Oct 24, 2024
1 parent 25f77da commit 2d5fe8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/article-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const ArticleFooter = () => {
});

const dislike = useMutation([path], {
mutationFn: () => axios.post('/api/like', { path }),
mutationFn: () => axios.post('/api/dislike', { path }),
onSuccess() {
if (!post) return;
qk.setQueryData(['post', path], {
Expand Down

0 comments on commit 2d5fe8b

Please sign in to comment.