fix: add null as defaout for userCounter in CardTitle
This commit is contained in:
committed by
Adolfo R. Brandes
parent
dae7186f96
commit
9ef86c2bfe
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user