Skip to content

Commit 5db9743

Browse files
committed
fix: loading songs displaying as ad slots
1 parent 6bb502e commit 5db9743

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ export const HomePageComponent = () => {
8888
<div className='h-6' />
8989
<SongCardGroup data-test='recent-songs'>
9090
{(recentSongs || []).map((song, i) =>
91-
song === undefined || song === null ? (
91+
// TODO: currently null = skeleton, undefined = ad slot. There must be a more robust system to indicate this.
92+
song === undefined ? (
9293
<SongCardAdSlot key={i} />
9394
) : (
9495
<SongCard key={i} song={song} />

0 commit comments

Comments
 (0)