diff --git a/plugins/announcements/src/components/AnnouncementsTimeline/AnnouncementsTimeline.tsx b/plugins/announcements/src/components/AnnouncementsTimeline/AnnouncementsTimeline.tsx index d2628be3..1ded9b1c 100644 --- a/plugins/announcements/src/components/AnnouncementsTimeline/AnnouncementsTimeline.tsx +++ b/plugins/announcements/src/components/AnnouncementsTimeline/AnnouncementsTimeline.tsx @@ -92,9 +92,10 @@ export const AnnouncementsTimeline = ({ } if (!announcements || announcements.count === 0) - return t('announcementsTimeline.noAnnouncements'); + return <>{t('announcementsTimeline.noAnnouncements')}; - if (error) return `${t('announcementsTimeline.error')}: ${error.message}`; + if (error) + return <>{`${t('announcementsTimeline.error')}: ${error.message}`}; return (