Skip to content

Commit

Permalink
fix(homepage): fix announcement fallback translations
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Sep 25, 2024
1 parent 0227c9e commit 7f4711b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/Home/Announcements/Carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 7f4711b

Please sign in to comment.