From d9b97ba40473426cb728e1d1ac73ebc3bb886179 Mon Sep 17 00:00:00 2001 From: Gurikov Maxim Date: Tue, 5 Nov 2024 19:42:42 +0500 Subject: [PATCH] fixes --- src/components/reviews/reviews.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/components/reviews/reviews.tsx b/src/components/reviews/reviews.tsx index fbc0372..ffd4c13 100644 --- a/src/components/reviews/reviews.tsx +++ b/src/components/reviews/reviews.tsx @@ -7,9 +7,23 @@ interface ReviewsProps { } export function Reviews({ reviews }: ReviewsProps): React.JSX.Element { + const reviewsAvailable = reviews && reviews.length != 0; return (
- + {reviewsAvailable ? ( + + ) : ( + + No reviews available + + )}
);