Skip to content

Commit

Permalink
refactor: Remove unused code in OverviewPageBranding and improve code…
Browse files Browse the repository at this point in the history
… formatting
  • Loading branch information
simlarsen committed Oct 9, 2024
1 parent 7b1960f commit 0d26242
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ const StatusPageDelete: FunctionComponent<PageComponentProps> = (
modelId: modelId,
}}
/>

</Fragment>
);
};
Expand Down
10 changes: 5 additions & 5 deletions StatusPage/src/Pages/Overview/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,13 @@ const Overview: FunctionComponent<PageComponentProps> = (
});

if (
!((statusPage?.downtimeMonitorStatuses || []).find(
!(statusPage?.downtimeMonitorStatuses || []).find(
(downtimeStatus: MonitorStatus) => {
return (
currentStatus?.id?.toString() === downtimeStatus?.id?.toString()
);
},
)) &&
) &&
data.group.showUptimePercent
) {
const uptimePercent: number | null =
Expand All @@ -333,9 +333,9 @@ const Overview: FunctionComponent<PageComponentProps> = (
},
);

if(uptimePercent === null) {
return <></>;
}
if (uptimePercent === null) {
return <></>;
}

return (
<div
Expand Down

0 comments on commit 0d26242

Please sign in to comment.