diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx index dba934301..d5f1e146c 100644 --- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx +++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx @@ -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 (