diff --git a/pages/review/[id].vue b/pages/review/[id].vue index db7808c..c099e6c 100644 --- a/pages/review/[id].vue +++ b/pages/review/[id].vue @@ -41,9 +41,9 @@ const user = ref(null) const review = ref(null) // Form state with default values -const song = ref(50) -const show = ref(50) -const costume = ref(50) +const song = ref(0) +const show = ref(0) +const costume = ref(0) const textReview = ref('') const isSubmitting = ref(false) @@ -91,9 +91,9 @@ async function fetchUserReview(userId: number) { // Pre-fill form with existing review data if (reviewData) { - song.value = reviewData.score_song || 50 - show.value = reviewData.score_show || 50 - costume.value = reviewData.score_costume || 50 + song.value = reviewData.score_song || 0 + show.value = reviewData.score_show || 0 + costume.value = reviewData.score_costume || 0 textReview.value = reviewData.text_review || '' } } catch (error) { @@ -210,15 +210,16 @@ onMounted(async () => {
-