Update StatusPage.tsx

This commit is contained in:
Nicholas Orlowsky 2022-12-04 18:10:43 -06:00 committed by GitHub
parent 10f347ea0c
commit 6d728613e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,12 +77,12 @@ export default function StatusPage() {
<div> <div>
<h3>Service Alerts</h3> <h3>Service Alerts</h3>
{incidents.map((e) => { {incidents !== null && incidents.map((e) => {
return ( return (
<IncidentCard incident={e}/> <IncidentCard incident={e}/>
); );
})} })}
{incidents.length == 0 && {(incidents !== null || incidents.length == 0) &&
<div className={`row text-center`} style={{width: '75vw'}}> <div className={`row text-center`} style={{width: '75vw'}}>
<h5 className={"col-12"}>No service alerts.</h5> <h5 className={"col-12"}>No service alerts.</h5>
</div> </div>