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