From c95e9da17f26f0cf2475bd7d1b09c75ea79b6219 Mon Sep 17 00:00:00 2001 From: Kentai Radiquum Date: Sun, 4 Aug 2024 16:32:26 +0500 Subject: [PATCH] fix: ProfilePage - remove recently watched Card if no watched present --- app/pages/Profile.tsx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/app/pages/Profile.tsx b/app/pages/Profile.tsx index 73a3dbd..8a39ae8 100644 --- a/app/pages/Profile.tsx +++ b/app/pages/Profile.tsx @@ -216,13 +216,15 @@ export const ProfilePage = (props: any) => { Время просмотра - {minutesToTime(user.watched_time)} + {minutesToTime(user.watched_time) || + "Нет просмотренных серий."} - {minutesToTime(user.watched_time)} + {minutesToTime(user.watched_time) || + "Нет просмотренных серий."} @@ -275,12 +277,14 @@ export const ProfilePage = (props: any) => { -
- -
+ {user.history.length > 0 && ( +
+ +
+ )} ); };