Merged PR 123: No need to remove when changing reaction, backend take care of it
No need to remove when changing reaction, backend take care of it
This commit is contained in:
@@ -58,13 +58,6 @@ async function reactToContent(reaction) {
|
||||
hasReacted.value = true;
|
||||
console.log(`Added ${reaction} reaction to content.`);
|
||||
} else if (reaction !== currentReaction.value) {
|
||||
adjustReactionCount(currentReaction.value);
|
||||
const requestRemove = {
|
||||
ContentId: contentId.value,
|
||||
userId: userStore.user.id,
|
||||
};
|
||||
await client.post("/api/content/reaction/remove", requestRemove);
|
||||
|
||||
const requestAdd = {
|
||||
ContentId: contentId.value,
|
||||
reaction: reaction,
|
||||
|
||||
Reference in New Issue
Block a user