diff --git a/frontend/src/pages/ClientsPage.tsx b/frontend/src/pages/ClientsPage.tsx index 4db8437..9e711fa 100644 --- a/frontend/src/pages/ClientsPage.tsx +++ b/frontend/src/pages/ClientsPage.tsx @@ -66,6 +66,7 @@ const WEEKDAY_FULL_NAMES = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Frida // Inline target panel shown inside each client card function ClientTargetPanel({ + client, target, onCreated, onDeleted, @@ -159,7 +160,7 @@ function ClientTargetPanel({ }); } else { await onCreated({ - clientId: target?.clientId || '', + clientId: client.id, periodType: formPeriodType, targetHours: hours, startDate: formStartDate,