Skip to content

Commit

Permalink
Front: Fix skeleton on release tile when release date is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthi-chaud committed Jul 27, 2024
1 parent bb7d549 commit 2be1a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/components/tile/release-tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ReleaseTile = (props: {
formatSubtitle?: (release: ReleaseWithRelations<"album">) => string;
}) => {
const yearFormat = props.release
? getYear(props.release.releaseDate)?.toString()
? getYear(props.release.releaseDate)?.toString() ?? ""
: "";
return (
<Tile
Expand Down

0 comments on commit 2be1a5b

Please sign in to comment.