From 7f4711b7610532cbd0c9d16051a20a030ed6ad18 Mon Sep 17 00:00:00 2001 From: robertu7 <4065233+robertu7@users.noreply.github.com> Date: Wed, 25 Sep 2024 16:26:57 +0800 Subject: [PATCH] fix(homepage): fix announcement fallback translations --- src/views/Home/Announcements/Carousel/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/Home/Announcements/Carousel/index.tsx b/src/views/Home/Announcements/Carousel/index.tsx index 12a452a5b4..0e96d4a64b 100644 --- a/src/views/Home/Announcements/Carousel/index.tsx +++ b/src/views/Home/Announcements/Carousel/index.tsx @@ -134,9 +134,9 @@ const Carousel = ({ items }: CarouselProps) => { ) // const hasTranslaton = translatedItem != null - const title = (translatedItem?.title ?? item.title) || '' - const itemLink = (translatedItem?.link ?? item.link) || '' - const itemContent = translatedItem?.content ?? item.content + const title = translatedItem?.title || item.title || '' + const itemLink = translatedItem?.link || item.link || '' + const itemContent = translatedItem?.content || item.content || '' const isFirstFold = i === 0 return (