diff --git a/dashboard/src/features/users/components/widgets/users-stats-widget/index.tsx b/dashboard/src/features/users/components/widgets/users-stats-widget/index.tsx
@@ -13,10 +13,11 @@ interface UsersStatsWidgetProps {
expired: number;
on_hold: number;
limited: number;
+ total: number;
}
export const UsersStatsWidget: FC<UsersStatsWidgetProps> = ({
- active, online, expired, on_hold, limited
+ active, online, expired, on_hold, limited, total,
}) => {
const { t } = useTranslation();
@@ -28,8 +29,6 @@ export const UsersStatsWidget: FC<UsersStatsWidgetProps> = ({
{ symbol: "Limited", amount: limited, color: "fill-red-500" },
];
- const total = active + online + expired + on_hold + limited
-
return (
<MiniWidget
title={<> <UsersIcon /> {t('users')} </>}
diff --git a/dashboard/src/features/users/components/widgets/users-stats-widget/users-stats-widget.stories.ts b/dashboard/src/features/users/components/widgets/users-stats-widget/users-stats-widget.stories.ts
@@ -22,5 +22,6 @@ export const UsersChart: WidgetStory = {
expired: 10,
on_hold: 5,
limited: 5,
+ total: 70,
}
}