From 2984684e8b02a1928227fc8ba7c5ffb4a30e299b Mon Sep 17 00:00:00 2001 From: Philip Double Date: Thu, 16 Sep 2021 16:03:25 -0400 Subject: [PATCH] Bug enabled regions (#543) * Removing the old dashboard code * one last line to clean * commit for review and collab * people enabled * ensuring that 0 displays if no value is returned for a category Co-authored-by: Spencer Stolworthy --- .../dashboard/widgets/dashboard_people_enabled_card.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/dashboard/widgets/dashboard_people_enabled_card.tsx b/src/components/dashboard/widgets/dashboard_people_enabled_card.tsx index 71db18e3..9896f2f9 100644 --- a/src/components/dashboard/widgets/dashboard_people_enabled_card.tsx +++ b/src/components/dashboard/widgets/dashboard_people_enabled_card.tsx @@ -47,7 +47,7 @@ export function DashboardPeopleEnabledCard({ Total Enabled - {usersEnabled?.allUsersCount} + {usersEnabled?.allUsersCount ?? 0} @@ -55,7 +55,7 @@ export function DashboardPeopleEnabledCard({ Red Hat - {usersEnabled?.rhUsersCount} + {usersEnabled?.rhUsersCount ?? 0} @@ -63,7 +63,7 @@ export function DashboardPeopleEnabledCard({ Others - {usersEnabled?.otherUsersCount} + {usersEnabled?.otherUsersCount ?? 0}