diff --git a/src/ui/MonitorAlertRowStatic.tsx b/src/ui/MonitorAlertRowStatic.tsx index fc373e1a..a7eb369a 100644 --- a/src/ui/MonitorAlertRowStatic.tsx +++ b/src/ui/MonitorAlertRowStatic.tsx @@ -34,15 +34,13 @@ const MonitorAlertRowStatic: FC = ({ return () => clearTimeout(id); }, [current]); + const alertObject = alerts[alertIndex] || alerts[0]; const alert = getServiceAlertDescription( - alerts[alertIndex], + alertObject, languages[current % languages.length], ) || - getServiceAlertHeader( - alerts[alertIndex], - languages[current % languages.length], - ); + getServiceAlertHeader(alertObject, languages[current % languages.length]); return (