tududi/frontend
Chris 733b6cd14b
fix: use nullish coalescing for recurrence weekday to allow Sunday selection (#1014)
Fixes #812

When creating a "Monthly on weekday" recurring task, the selector would
jump back to Monday when trying to select Sunday. This was caused by using
the logical OR operator (||) instead of the nullish coalescing operator (??)
when handling the recurrence_weekday value.

Since Sunday is represented as 0, the || operator treated it as falsy and
defaulted to null/undefined, which then defaulted to 1 (Monday).

Changes:
- Replace || with ?? for recurrence_weekday in TaskRecurrenceCard.tsx
- Replace || with ?? for recurrence_weekday in TaskDetails.tsx
- Also fix recurrence_week_of_month and recurrence_month_day for consistency
2026-04-13 19:07:20 +03:00
..
__tests__ Setup slugify and fix nanoid issues 2025-08-08 23:14:40 +03:00
components fix: use nullish coalescing for recurrence weekday to allow Sunday selection (#1014) 2026-04-13 19:07:20 +03:00
config Fix static base path (#549) 2025-11-16 22:43:06 +02:00
constants Cleanup statuses (#724) 2025-12-19 11:13:27 +02:00
contexts Fix static base path (#549) 2025-11-16 22:43:06 +02:00
entities Set stalled projects active without tasks (#793) 2026-01-23 23:06:35 +02:00
hooks Add custom keyboard shortcuts (#749) 2025-12-28 21:58:21 +02:00
store Fix tag links by refreshing tags after creation (#843) 2026-02-27 00:34:10 +02:00
styles Fix project name overflow and add 6-word validation limit (#972) 2026-03-24 17:36:24 +02:00
utils feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
App.tsx feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
i18n.ts Fix static base path (#549) 2025-11-16 22:43:06 +02:00
index.tsx Fix static base path (#549) 2025-11-16 22:43:06 +02:00
Layout.tsx Load areas into store (#913) 2026-03-06 08:46:07 +02:00