From bddebb33ae3249ded6d25baf7fe82b9414c0798b Mon Sep 17 00:00:00 2001 From: senke Date: Wed, 24 Dec 2025 14:34:00 +0100 Subject: [PATCH] [FE-COMP-003] fix: Fix TypeScript errors in empty states - Fixed isOwnProfile reference in UserProfilePage - Fixed possibly undefined data in PlaylistList pagination --- apps/web/src/features/playlists/components/PlaylistList.tsx | 2 +- apps/web/src/features/profile/pages/UserProfilePage.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/src/features/playlists/components/PlaylistList.tsx b/apps/web/src/features/playlists/components/PlaylistList.tsx index 7a10a9f6e..381f320e3 100644 --- a/apps/web/src/features/playlists/components/PlaylistList.tsx +++ b/apps/web/src/features/playlists/components/PlaylistList.tsx @@ -353,7 +353,7 @@ export function PlaylistList({ className="text-xs sm:text-sm text-muted-foreground text-center sm:text-left" aria-live="polite" > - Page {currentPage} sur {totalPages} ({data.total} playlists) + Page {currentPage} sur {totalPages} ({data?.total || 0} playlists)