Skip to content

Commit

Permalink
Merge pull request #4878 from thematters/fix/announcement-i18n
Browse files Browse the repository at this point in the history
fix(homepage): fix announcement fallback translations
  • Loading branch information
gitwoz authored Oct 5, 2024
2 parents cfbe107 + 38324e3 commit 96f2848
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 96f2848

Please sign in to comment.