From 298fa8de8742575865221f6b5a2120463e04c542 Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Tue, 11 Jun 2024 06:16:53 +0400 Subject: [PATCH] Fix checkbox bug --- src/app.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.jsx b/src/app.jsx index 4d2a38e..950a71a 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -146,6 +146,7 @@ export default function App() { control={control} name="consent_given" rules={{ validate: (value) => value }} + defaultValue={false} render={({ field: { onChange, value }, fieldState: { invalid },