fix: preserve legacy compliance response contract

This commit is contained in:
muhdusama committed 2026-09-21 07:17:13 +10:00
1 parent 41d47c3184
commit 24ff031f7a
9 files changed
+119 -44

No files matched your search

@@ -382,8 +382,8 @@ export function MedicationDetailTabs({
return await apiGet<{
applicable: boolean;
notApplicableReason: "NO_LOCAL_SCHEDULE" | null;
compliance7: { rate: number; streak: number } | null;
compliance30: { rate: number } | null;
compliance7: { rate: number; streak: number };
compliance30: { rate: number };
complianceDisplay: ComplianceDisplay | null;
}>(`/api/medications/${id}/compliance`);
} catch {