From daa3938c7d087562d0adca1c96f5b6bb35331727 Mon Sep 17 00:00:00 2001 From: Carlos Andres Perez Ubeda Date: Wed, 4 Dec 2024 17:35:01 -0600 Subject: [PATCH] fix: handle undefined likes in poster-horizontal - Replace Typography with TextMaxLine for likes display, ensuring it handles undefined likes gracefully by defaulting to 0. - Adjust line clamping behavior for improved visual consistency. --- src/components/poster/variants/poster-horizontal.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/poster/variants/poster-horizontal.tsx b/src/components/poster/variants/poster-horizontal.tsx index f64a0e093..c16d2451e 100644 --- a/src/components/poster/variants/poster-horizontal.tsx +++ b/src/components/poster/variants/poster-horizontal.tsx @@ -71,9 +71,9 @@ const PosterHorizontal = ({ title, images, likes, id, synopsis }: Poster) => { - - {formatLikes(likes)} - + + {formatLikes(likes ?? 0)} +