diff --git a/frontend/components/Domain/Recipe/RecipeRating.vue b/frontend/components/Domain/Recipe/RecipeRating.vue index 38fdb03ff..25561bdb6 100644 --- a/frontend/components/Domain/Recipe/RecipeRating.vue +++ b/frontend/components/Domain/Recipe/RecipeRating.vue @@ -84,10 +84,14 @@ export default defineNuxtComponent({ }); function updateRating(val?: number) { - if (!isOwnGroup.value || !val) { + if (!isOwnGroup.value) { return; } + if (val === userRating.value) { + val = 0; + } + if (!props.emitOnly) { setRating(props.slug, val || 0, null); }