Update CreateReminderForm.tsx

This commit is contained in:
Daniel Hougaard
2025-04-26 05:56:11 +04:00
parent 11ee13676d
commit 0a5f6274f5

View File

@@ -88,12 +88,8 @@ export const CreateReminderForm = ({
}, [members, isOpen, recipients]);
useEffect(() => {
if (repeatDays) {
setValue("days", repeatDays);
}
if (note) {
setValue("note", note);
}
if (repeatDays) setValue("days", repeatDays);
if (note) setValue("note", note);
}, [repeatDays, note]);
return (