Skip to content

Commit 7733a3f

Browse files
committed
fix(ui): change switch value to checked
1 parent ae35e15 commit 7733a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ui/base/Toggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const Toggle = (inputProps: Props) => {
1515
const [state, send] = useMachine(zagSwitch.machine({
1616
id: createUniqueId(),
1717
readOnly: props.readOnly,
18-
value: props.value(),
18+
checked: props.value(),
1919
onChange({ checked }) {
2020
if (hack_FirstTimeRender) {
2121
hack_FirstTimeRender = false

0 commit comments

Comments
 (0)