diff --git a/frontend/pages/DashboardPage/DashboardPage.tsx b/frontend/pages/DashboardPage/DashboardPage.tsx index 505a13c9c5..ffab81a49e 100644 --- a/frontend/pages/DashboardPage/DashboardPage.tsx +++ b/frontend/pages/DashboardPage/DashboardPage.tsx @@ -239,29 +239,29 @@ const DashboardPage = ({ router, location }: IDashboardProps): JSX.Element => { (platform: IHostSummaryPlatforms) => platform.platform === "windows" ) || { platform: "windows", hosts_count: 0 }; - const chromebooks = data.platforms?.find( + const chomeOSHosts = data.platforms?.find( (platform: IHostSummaryPlatforms) => platform.platform === "chrome" ) || { platform: "chrome", hosts_count: 0 }; - const iphones = data.platforms?.find( + const iOSHosts = data.platforms?.find( (platform: IHostSummaryPlatforms) => platform.platform === "ios" ) || { platform: "ios", hosts_count: 0 }; - const ipads = data.platforms?.find( + const iPadOSHosts = data.platforms?.find( (platform: IHostSummaryPlatforms) => platform.platform === "ipados" ) || { platform: "ipados", hosts_count: 0 }; - const android = data.platforms?.find( + const androidHosts = data.platforms?.find( (platform: IHostSummaryPlatforms) => platform.platform === "android" ) || { platform: "android", hosts_count: 0 }; setMacCount(macHosts.hosts_count); setWindowsCount(windowsHosts.hosts_count); setLinuxCount(data.all_linux_count); - setChromeCount(chromebooks.hosts_count); - setIosCount(iphones.hosts_count); - setIpadosCount(ipads.hosts_count); - setAndroidCount(android.hosts_count); + setChromeCount(chomeOSHosts.hosts_count); + setIosCount(iOSHosts.hosts_count); + setIpadosCount(iPadOSHosts.hosts_count); + setAndroidCount(androidHosts.hosts_count); setShowHostsUI(true); }, } diff --git a/frontend/pages/DashboardPage/cards/OperatingSystems/OperatingSystems.tsx b/frontend/pages/DashboardPage/cards/OperatingSystems/OperatingSystems.tsx index 343f74fe70..20284a4f96 100644 --- a/frontend/pages/DashboardPage/cards/OperatingSystems/OperatingSystems.tsx +++ b/frontend/pages/DashboardPage/cards/OperatingSystems/OperatingSystems.tsx @@ -78,7 +78,7 @@ const OperatingSystems = ({ auto-update expiration date.{" "} diff --git a/frontend/pages/DashboardPage/sections/PlatformHostCounts/PlatformHostCounts.tsx b/frontend/pages/DashboardPage/sections/PlatformHostCounts/PlatformHostCounts.tsx index 7d556352ec..9ccc53b938 100644 --- a/frontend/pages/DashboardPage/sections/PlatformHostCounts/PlatformHostCounts.tsx +++ b/frontend/pages/DashboardPage/sections/PlatformHostCounts/PlatformHostCounts.tsx @@ -138,7 +138,7 @@ const PlatformHostCounts = ({