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:
Dominic Villemure
2024-08-25 18:20:20 +00:00

View File

@@ -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,