fix: parseBooleanProp
This commit is contained in:
parent
9235fabaa9
commit
6f79f6d4ed
|
@ -1,5 +1,5 @@
|
||||||
export function parseBooleanProp(booleanProp: string) {
|
export function parseBooleanProp(booleanProp: string | undefined) {
|
||||||
return (booleanProp === 'false' || booleanProp === '0')
|
return (booleanProp === 'false' || booleanProp === '0')
|
||||||
? false
|
? false
|
||||||
: Boolean(booleanProp)
|
: Boolean(booleanProp)
|
||||||
}
|
}
|
Reference in New Issue