From 63e3f3639599c48053d0d6cfc6fe2e5b2e66a434 Mon Sep 17 00:00:00 2001 From: SuperHuangXu Date: Thu, 30 Mar 2023 19:04:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Announcement=20?= =?UTF-8?q?=E6=98=BE=E9=9A=90=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/next/components/SideAreaRight.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/next/components/SideAreaRight.js b/themes/next/components/SideAreaRight.js index 89b5b0ba..6376a4f7 100644 --- a/themes/next/components/SideAreaRight.js +++ b/themes/next/components/SideAreaRight.js @@ -25,6 +25,8 @@ const SideAreaRight = (props) => { const { tagOptions, currentTag, slot, categoryOptions, currentCategory, notice } = props const { locale } = useGlobal() const router = useRouter() + const announcementVisible = notice && Object.keys(notice).length > 0 + return (