diff --git a/frontend/components/product/ProductComments.vue b/frontend/components/product/ProductComments.vue index d6ff612..be37d77 100644 --- a/frontend/components/product/ProductComments.vue +++ b/frontend/components/product/ProductComments.vue @@ -19,7 +19,6 @@ const props = defineProps(); const route = useRoute(); const id = route.params.id as string | undefined; -const page = ref(1); const { token } = useAuth(); const userTitle = ref(""); @@ -28,7 +27,7 @@ const selectedRating = ref(5); const showMoreComments = ref(false); -const { data: comments, refetch: refetchComments } = useGetComments(id, page); +const { data: comments, refetch: refetchComments } = useGetComments(id); const { mutateAsync: createComment, isPending: isCreateCommentPending } = useCreateComment(id); const { mutateAsync: rateProduct, isPending: isRateProductPending } = useRateProduct(props.product.slug); @@ -209,10 +208,10 @@ const limitedComments = computed(() => { v-if="showMoreComments" :total="comments.count" :items="comments.results.map((item, i) => ({ type: 'page', value: i }))" - :per-page="3" + :per-page="8" />