diff --git a/src/components/reviews/ProductReviews.tsx b/src/components/reviews/ProductReviews.tsx index 1c46690..d729f22 100644 --- a/src/components/reviews/ProductReviews.tsx +++ b/src/components/reviews/ProductReviews.tsx @@ -75,7 +75,7 @@ export function ProductReviews({ productId, type }: ProductReviewsProps) { rating={review.rating} title={review.title} body={review.body} - authorName={review.reviewer_name || review.profiles?.name || 'Anonymous'} + authorName={review.profiles?.name || review.reviewer_name || 'Anonymous'} date={review.created_at} /> ))} diff --git a/src/components/reviews/TestimonialsSection.tsx b/src/components/reviews/TestimonialsSection.tsx index 6e5cefb..6286eb9 100644 --- a/src/components/reviews/TestimonialsSection.tsx +++ b/src/components/reviews/TestimonialsSection.tsx @@ -46,7 +46,7 @@ export function TestimonialsSection() { rating={review.rating} title={review.title} body={review.body} - authorName={review.reviewer_name || review.profiles?.name || 'Anonymous'} + authorName={review.profiles?.name || review.reviewer_name || 'Anonymous'} date={review.created_at} /> ))}