From 143defc0b0d625624cb23c75d059fbf6dab54bc2 Mon Sep 17 00:00:00 2001 From: jeafreezy Date: Tue, 19 Nov 2024 10:28:44 +0000 Subject: [PATCH] chore:fixed crash --- frontend/src/components/ui/banner/banner.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/ui/banner/banner.tsx b/frontend/src/components/ui/banner/banner.tsx index 031845b9..ecf2ba6b 100644 --- a/frontend/src/components/ui/banner/banner.tsx +++ b/frontend/src/components/ui/banner/banner.tsx @@ -27,10 +27,6 @@ const Banner = () => { setIsBannerVisible(false); }; - if (!isBannerVisible || isError || data?.length === 0 || isLoading) { - return null; - } - const banner = useMemo( () => (
@@ -40,7 +36,7 @@ const Banner = () => { "flex flex-wrap gap-x-2 items-center justify-center w-full" } > - {data?.[0].message} + {data?.[0]?.message}