Skip to content

Commit 88b5b8b

Browse files
authored
Only show tiers that have at least 1 sponsor (#4183)
1 parent 119af2f commit 88b5b8b

File tree

1 file changed

+3
-1
lines changed
  • frontend/src/components/blocks/sponsors-section

1 file changed

+3
-1
lines changed

frontend/src/components/blocks/sponsors-section/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export const SponsorsSection = ({ title, body, cta }: Props) => {
3737
code: process.env.conferenceCode,
3838
},
3939
});
40-
const sponsorsByLevel = conference.sponsorsByLevel;
40+
const sponsorsByLevel = conference.sponsorsByLevel.filter(
41+
(tier) => tier.sponsors.length > 0,
42+
);
4143

4244
if (sponsorsByLevel.length === 0) {
4345
return null;

0 commit comments

Comments
 (0)