[Bug fix] Controls > OS settings: Plural "1 hosts" (#35611)

For the following bug:
- #35610

@noahtalerman: I didn't test/QA this myself. I moved the bug to
"Awaiting QA"
This commit is contained in:
Noah Talerman 2025-11-12 10:34:49 -05:00 committed by GitHub
parent 5679052134
commit 05a43df309
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,6 +29,8 @@ const ProfileStatusCount = ({
hostCount,
tooltipText,
}: IProfileStatusCountProps) => {
const countText = hostCount === 1 ? "host" : "hosts";
return (
<div className={`${baseClass}__profile-status-count`}>
<StatusIndicatorWithIcon
@ -38,7 +40,9 @@ const ProfileStatusCount = ({
layout="vertical"
valueClassName={`${baseClass}__status-indicator-value`}
/>
<div className={`${baseClass}__host-count`}>{hostCount} hosts</div>
<div className={`${baseClass}__host-count`}>
{hostCount} {countText}
</div>
</div>
);
};