From 6f79f6d4ed9892ce4c0ec991f9b66cc9001a97d7 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 24 Oct 2022 15:40:39 +0200 Subject: [PATCH] fix: parseBooleanProp --- src/helpers/time/parseBooleanProp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/time/parseBooleanProp.ts b/src/helpers/time/parseBooleanProp.ts index 1407fe4e1..b43ecac59 100644 --- a/src/helpers/time/parseBooleanProp.ts +++ b/src/helpers/time/parseBooleanProp.ts @@ -1,5 +1,5 @@ -export function parseBooleanProp(booleanProp: string) { +export function parseBooleanProp(booleanProp: string | undefined) { return (booleanProp === 'false' || booleanProp === '0') ? false - : Boolean(booleanProp) + : Boolean(booleanProp) } \ No newline at end of file