Skip to content

Commit b6d4401

Browse files
committed
fix(homepage): remove unnecessary type guard on recent songs iteration
1 parent f6fa5e1 commit b6d4401

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/frontend/src/modules/browse/components/HomePageComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const HomePageComponent = () => {
8787
</div>
8888
<div className='h-6' />
8989
<SongCardGroup data-test='recent-songs'>
90-
{(recentSongs || []).map((song, i) =>
90+
{recentSongs.map((song, i) =>
9191
// TODO: currently null = skeleton, undefined = ad slot. There must be a more robust system to indicate this.
9292
song === undefined ? (
9393
<SongCardAdSlot key={i} />

0 commit comments

Comments
 (0)