Skip to content

Commit c46e235

Browse files
committed
fix: add null as defaout for userCounter in CardTitle
1 parent 253f78d commit c46e235

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/authz-module/components/RoleCard

src/authz-module/components/RoleCard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface RoleCardProps extends CardTitleProps {
1818
permissions: any[];
1919
}
2020

21-
const CardTitle = ({ title, userCounter }: CardTitleProps) => (
21+
const CardTitle = ({ title, userCounter = null }: CardTitleProps) => (
2222
<div className="d-flex align-items-center">
2323
<span className="mr-4 text-primary">{title}</span>
2424
{userCounter !== null && (

0 commit comments

Comments
 (0)