Skip to content

Commit

Permalink
Refactor alt attribute in DisplaySongs component to include song name…
Browse files Browse the repository at this point in the history
… if orderTitle is not available
  • Loading branch information
Evan-2007 committed Oct 20, 2024
1 parent 94abdb6 commit 044b9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function DisplaySongs({
src={`${baseImageURL}&id=${song.id}`}
width={300}
height={300}
alt={song.orderTitle}
alt={song.orderTitle || song.name}
/>
<p>{song.orderTitle}</p>
<p>{song.artist}</p>
Expand Down

0 comments on commit 044b9be

Please sign in to comment.