Browse Source

Fix null artist biography breaking spacing

master
jeffvli 3 years ago
parent
commit
684f697bbc
  1. 3
      src/components/library/ArtistView.tsx

3
src/components/library/ArtistView.tsx

@ -132,7 +132,8 @@ const ArtistView = ({ ...rest }: any) => {
<span>
{artistInfo.biography
?.replace(/<[^>]*>/, '')
.replace('Read more on Last.fm</a>', '') !== ''
.replace('Read more on Last.fm</a>', '')
?.trim() !== ''
? `${artistInfo.biography
?.replace(/<[^>]*>/, '')
.replace('Read more on Last.fm</a>', '')}`

Loading…
Cancel
Save