Fix bug in which Featured section shows for everyone

This commit is contained in:
Pico2x 2022-10-12 15:29:32 +01:00
parent decb3213f6
commit de9ffa2b52

View File

@ -226,7 +226,7 @@ function renderSections(
if (id === 'featured') {
// For now, only admins can see the featured section, until we all agree its ship-ready
if (!isAdmin) return <></>
if (!isAdmin()) return <></>
return <FeaturedSection />
}