diff --git a/app/(main)/profile/page.tsx b/app/(main)/profile/page.tsx index 6be7b0f..c3cc9dd 100644 --- a/app/(main)/profile/page.tsx +++ b/app/(main)/profile/page.tsx @@ -32,8 +32,9 @@ export default async function Page({
- {searchParams.view === 'votes' - ? data.reviews_voted.map((item, i) => ( + {searchParams.view === 'votes' ? ( + data.reviews_voted.length > 0 ? ( + data.reviews_voted.map((item, i) => ( )) - : data.reviews.map((item, i) => ( - - ))} + ) : ( +

+ You haven't written any reviews. +

+ ) + ) : data.reviews.length > 0 ? ( + data.reviews.map((item, i) => ( + + )) + ) : ( +

+ You haven't interacted with any reviews. +

+ )}