fix: Able to toggle off timeFormat on new booker UI (#9442)
Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
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}
|
||||
|
||||
Reference in new issue
Block a user