diff --git a/apps/pwa/src/components/EventForm.tsx b/apps/pwa/src/components/EventForm.tsx index 15c700b..85ada55 100644 --- a/apps/pwa/src/components/EventForm.tsx +++ b/apps/pwa/src/components/EventForm.tsx @@ -1029,11 +1029,14 @@ export function EventForm() { )} {/* Helper text: shown in edit mode when value is __custom__ or synthetic off-list (D-07) */} + {/* WR-03: gate on the ACTIVE preset set only — not both — so a timed event with a + value that happens to be in the allDay set still shows the off-list helper text */} {eventFormMode === 'edit' && (reminderValue === '__custom__' || (reminderValue !== '__none__' && - !TIMED_REMINDER_PRESETS.has(parseInt(reminderValue, 10)) && - !ALLDAY_REMINDER_PRESETS.has(parseInt(reminderValue, 10)) && + !(allDay ? ALLDAY_REMINDER_PRESETS : TIMED_REMINDER_PRESETS).has( + parseInt(reminderValue, 10), + ) && Number.isFinite(parseInt(reminderValue, 10)))) && (