diff --git a/src/components/SQLCourse/ReviewsSection.tsx b/src/components/SQLCourse/ReviewsSection.tsx index 3b8a860fe..b5e98e02f 100644 --- a/src/components/SQLCourse/ReviewsSection.tsx +++ b/src/components/SQLCourse/ReviewsSection.tsx @@ -78,22 +78,23 @@ export function ReviewsSection() { }, ]; - const visibleReviews = isExpanded ? reviews : reviews.slice(0, 6); - return ( -
+
- {visibleReviews.map((review, index) => ( + {reviews.map((review, index) => (
{review.avatarUrl && ( @@ -124,14 +125,21 @@ export function ReviewsSection() {

{review.text}

))} -
- {!isExpanded && ( -
- )} +
+
-
+