From e433770a9aa6ee7e2b4660e5b90a3bab012728c4 Mon Sep 17 00:00:00 2001 From: iFixKart Dev Date: Tue, 17 Nov 2026 19:01:52 +0530 Subject: [PATCH] fix(reviews): reflect pending moderation status on customer submission --- components/pdp/ProductReviewsSection.tsx | 5 +++++ components/pdp/ReviewSubmissionModal.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/components/pdp/ProductReviewsSection.tsx b/components/pdp/ProductReviewsSection.tsx index d031d79..5f5e1f4 100644 --- a/components/pdp/ProductReviewsSection.tsx +++ b/components/pdp/ProductReviewsSection.tsx @@ -71,6 +71,11 @@ export function ProductReviewsSection({ }; const handleReviewSubmitted = (newReview: ProductReviewItem) => { + // If review is pending admin approval, do not append to public storefront list + if (newReview.is_approved === false) { + return; + } + setData((prev) => { const existingReviews = prev ? prev.reviews : []; const updatedReviews = [newReview, ...existingReviews]; diff --git a/components/pdp/ReviewSubmissionModal.tsx b/components/pdp/ReviewSubmissionModal.tsx index c4893fc..ede0a96 100644 --- a/components/pdp/ReviewSubmissionModal.tsx +++ b/components/pdp/ReviewSubmissionModal.tsx @@ -197,7 +197,7 @@ export function ReviewSubmissionModal({

Thank You!

- Your review has been successfully submitted and verified. + Your review has been submitted and is currently pending moderation. It will be published once approved by our team.

) : (