From de9ffa2b5243a9606476211011331603b4f4d8df Mon Sep 17 00:00:00 2001 From: Pico2x Date: Wed, 12 Oct 2022 15:29:32 +0100 Subject: [PATCH] Fix bug in which Featured section shows for everyone --- web/pages/home/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pages/home/index.tsx b/web/pages/home/index.tsx index 253b86ab..b11bb176 100644 --- a/web/pages/home/index.tsx +++ b/web/pages/home/index.tsx @@ -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 }