From 684f697bbc8a79199bac370d27c55c96bc185153 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Mon, 4 Oct 2021 00:32:17 -0700 Subject: [PATCH] Fix null artist biography breaking spacing --- src/components/library/ArtistView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/library/ArtistView.tsx b/src/components/library/ArtistView.tsx index 2c279c3..b555fef 100644 --- a/src/components/library/ArtistView.tsx +++ b/src/components/library/ArtistView.tsx @@ -132,7 +132,8 @@ const ArtistView = ({ ...rest }: any) => { {artistInfo.biography ?.replace(/<[^>]*>/, '') - .replace('Read more on Last.fm', '') !== '' + .replace('Read more on Last.fm', '') + ?.trim() !== '' ? `${artistInfo.biography ?.replace(/<[^>]*>/, '') .replace('Read more on Last.fm', '')}`