diff --git a/client/pages/TrackerPage.jsx b/client/pages/TrackerPage.jsx index 363fc75..67bc4a8 100644 --- a/client/pages/TrackerPage.jsx +++ b/client/pages/TrackerPage.jsx @@ -813,7 +813,7 @@ export default function TrackerPage() { - Live Sync + Live

diff --git a/services/billsService.js b/services/billsService.js index 31fa0a5..3922205 100644 --- a/services/billsService.js +++ b/services/billsService.js @@ -254,9 +254,13 @@ function validateBillData(data, existingBill = null) { } normalized.name = nameVal || null; - // due_day is required + // due_day is required; fall back to existing value on partial updates if (data.due_day === undefined || data.due_day === null) { - errors.push({ field: 'due_day', message: 'due_day is required' }); + if (existingBill?.due_day != null) { + normalized.due_day = existingBill.due_day; + } else { + errors.push({ field: 'due_day', message: 'due_day is required' }); + } } else { const dueResult = parseDueDay(data.due_day); if (dueResult.error) {