[DOC] improve changelog

This commit is contained in:
Géry Debongnie
2022-02-04 14:00:28 +01:00
committed by Aaron Bohy
parent 960808aeb2
commit ea2ccc5a03
3 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ export function validateProps<P>(name: string | ComponentConstructor<P>, props:
}
if (isMandatory && propName in defaultProps) {
throw new Error(
`A default value cannot be defined for a mandatory prop (name: '${propName}', component: ${ComponentClass.name}`
`A default value cannot be defined for a mandatory prop (name: '${propName}', component: ${ComponentClass.name})`
);
}
if ((props as any)[propName] === undefined) {