From 10d683d00749d0b747d90e6edce93c18d8c05ec8 Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 4 Jul 2024 12:19:32 +0200 Subject: [PATCH] fix: fixed whitespaces in genrebadges --- src/components/genre/GenreBadge.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/genre/GenreBadge.tsx b/src/components/genre/GenreBadge.tsx index f8444a1..f885fdb 100644 --- a/src/components/genre/GenreBadge.tsx +++ b/src/components/genre/GenreBadge.tsx @@ -26,7 +26,7 @@ const GenreBadge: React.FC = ({ paddingHorizontal={size === 'medium' ? '$3.5' : '$2'} paddingVertical={size === 'medium' ? '$2' : '$1'} {...props}> - {size === 'medium' ? text : text.split(' ')[1]} + {size === 'medium' ? text : text.trim().split(' ')[1]} );