Skip to content

Commit c0a16f4

Browse files
committed
fix: correct heading message for abnormal service count
1 parent aab7c04 commit c0a16f4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Pages/Home.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export function Home() {
7272
}, [DB]);
7373

7474
const heading = abnormalCount > 0
75-
? `${abnormalCount} components have issue, but don't worry, we are working on it.`
75+
? abnormalCount === 1
76+
? `${abnormalCount} component has an issue, but don't worry, we are working on it.`
77+
: `${abnormalCount} components have issues, but don't worry, we are working on it.`
7678
: "All Systems Operational";
7779

7880
return (

0 commit comments

Comments
 (0)