Skip to content

Commit

Permalink
fix: fixed whitespaces in genrebadges
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis3797 committed Jul 4, 2024
1 parent c7f6101 commit 10d683d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/genre/GenreBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const GenreBadge: React.FC<GenreBadgeProps> = ({
paddingHorizontal={size === 'medium' ? '$3.5' : '$2'}
paddingVertical={size === 'medium' ? '$2' : '$1'}
{...props}>
<Text fontWeight="400">{size === 'medium' ? text : text.split(' ')[1]}</Text>
<Text fontWeight="400">{size === 'medium' ? text : text.trim().split(' ')[1]}</Text>
</XStack>
</Pressable>
);
Expand Down

0 comments on commit 10d683d

Please sign in to comment.