fix: Able to toggle off timeFormat on new booker UI (#9442)

Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
Rob JacksonandUdit Takkar authored and GitHub committed 2023-06-10 07:51:49 +00:00
1 parent 0d01d3246a
commit 5b47844fa1
1 file changed
+1 -1
@@ -12,7 +12,7 @@ export const TimeFormatToggle = () => {
return (
<ToggleGroup
onValueChange={(newFormat) => {
if (newFormat !== timeFormat) setTimeFormat(newFormat as TimeFormat);
if (newFormat && newFormat !== timeFormat) setTimeFormat(newFormat as TimeFormat);
}}
defaultValue={timeFormat}
value={timeFormat}