Fix bug in which Featured section shows for everyone
This commit is contained in:
parent
decb3213f6
commit
de9ffa2b52
|
@ -226,7 +226,7 @@ function renderSections(
|
||||||
|
|
||||||
if (id === 'featured') {
|
if (id === 'featured') {
|
||||||
// For now, only admins can see the featured section, until we all agree its ship-ready
|
// For now, only admins can see the featured section, until we all agree its ship-ready
|
||||||
if (!isAdmin) return <></>
|
if (!isAdmin()) return <></>
|
||||||
return <FeaturedSection />
|
return <FeaturedSection />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user