fix formState and undefined value (#5576)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
alannncandkodiakhq[bot] authored and GitHub committed 2022-11-22 16:27:47 +00:00
1 parent 1070cc2892
commit ba5d448811
2 files changed
+3 -1

No files matched your search

@@ -289,7 +289,7 @@ export const EventLimitsTab = ({ eventType }: Pick<EventTypeSetupInfered, "event
<SettingsToggle
title={t("limit_future_bookings")}
description={t("limit_future_bookings_description")}
checked={value !== "UNLIMITED"}
checked={value && value !== "UNLIMITED"}
onCheckedChange={(bool) => formMethods.setValue("periodType", bool ? "ROLLING" : "UNLIMITED")}>
<RadioGroup.Root
defaultValue={watchPeriodType}