Skip to content

Commit

Permalink
🐛 Fix type error with typescript 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
srod committed Sep 27, 2024
1 parent 2c10d6e commit 36727bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function FormFromTo<

useEffect(() => {
if (defaultChecked) return;
setIsChecked(!isAllZero ?? "indeterminate");
setIsChecked(!isAllZero);
}, [isAllZero, defaultChecked]);

function checkingCheckbox(value: boolean | "indeterminate") {
Expand Down

0 comments on commit 36727bc

Please sign in to comment.