fix: parseBooleanProp
This commit is contained in:
parent
51dc123d89
commit
8dea4082bb
@ -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)
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user