diff --git a/src/components/feat/LayoutPart.tsx b/src/components/feat/LayoutPart.tsx index 6b86be1..406d919 100644 --- a/src/components/feat/LayoutPart.tsx +++ b/src/components/feat/LayoutPart.tsx @@ -48,24 +48,26 @@ export default function LayoutPart({ - {!loading && incidents !== null && ( -
- - { - ( - incidents[0] as { - attributes: { title: string }; - } - ).attributes.title - }{" "} - {" "} - - MHSF may be down -
- - View MHSF Status - -
- )} + {!loading && + incidents !== null && + (incidents as Array).length > 0 && ( +
+ + { + ( + incidents[0] as { + attributes: { title: string }; + } + ).attributes.title + }{" "} + {" "} + - MHSF may be down +
+ + View MHSF Status + +
+ )}