Skip to content

Commit f531e61

Browse files
authored
fix: fix partner checkbox default value (#17)
Przycisk był wyłączony pomimo uzupełnionych danych: <img width="1404" height="656" alt="image" src="https://github.com/user-attachments/assets/c23053b4-8874-4c00-9efa-1490efdf487c" />
1 parent 3a79b6d commit f531e61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/event-form/use-event-form.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ import { eventFormSchema } from './event-form-schema';
1010

1111
export const useEventForm = () => {
1212
const thumbnailRef = useRef<HTMLDivElement>(null);
13-
const form = useForm({ resolver: zodResolver(eventFormSchema) });
13+
const form = useForm({
14+
defaultValues: { withPartners: false },
15+
resolver: zodResolver(eventFormSchema),
16+
});
1417

1518
const isCompleted = form.formState.isValid;
1619

0 commit comments

Comments
 (0)