From 9ef86c2bfedbf293189f1893a3016e6b9c7ce1ef Mon Sep 17 00:00:00 2001 From: Diana Olarte Date: Wed, 22 Oct 2025 19:29:13 +1100 Subject: [PATCH] fix: add null as defaout for userCounter in CardTitle --- src/authz-module/components/RoleCard/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authz-module/components/RoleCard/index.tsx b/src/authz-module/components/RoleCard/index.tsx index 9b2f9f3..1c15466 100644 --- a/src/authz-module/components/RoleCard/index.tsx +++ b/src/authz-module/components/RoleCard/index.tsx @@ -18,7 +18,7 @@ interface RoleCardProps extends CardTitleProps { permissions: any[]; } -const CardTitle = ({ title, userCounter }: CardTitleProps) => ( +const CardTitle = ({ title, userCounter = null }: CardTitleProps) => (
{title} {userCounter !== null && (