diff --git a/priv/frontend/src/components/DegradedNotice.js b/priv/frontend/src/components/DegradedNotice.js index d83777c..fe5e088 100644 --- a/priv/frontend/src/components/DegradedNotice.js +++ b/priv/frontend/src/components/DegradedNotice.js @@ -6,11 +6,13 @@ import './DegradedNotice.css' const DegradedNotice = ({ services }) => { const keys = Object.keys(services) const serviceNames = keys.join(', ') + const plural = keys.length === 1 ? '' : 's' + const indicative = keys.length === 1 ? 'is' : 'are' return (
-
{keys.length} service{plural} are unreachable
+
{keys.length} service{plural} {indicative} unreachable

elstat is having trouble contacting {serviceNames}.