fix: add null as defaout for userCounter in CardTitle

This commit is contained in:
Diana Olarte
2025-10-22 19:29:13 +11:00
committed by Adolfo R. Brandes
parent dae7186f96
commit 9ef86c2bfe

View File

@@ -18,7 +18,7 @@ interface RoleCardProps extends CardTitleProps {
permissions: any[];
}
const CardTitle = ({ title, userCounter }: CardTitleProps) => (
const CardTitle = ({ title, userCounter = null }: CardTitleProps) => (
<div className="d-flex align-items-center">
<span className="mr-4 text-primary">{title}</span>
{userCounter !== null && (