diff --git a/components/PrintableReport.tsx b/components/PrintableReport.tsx index 3f60576..f7f59d9 100644 --- a/components/PrintableReport.tsx +++ b/components/PrintableReport.tsx @@ -6,6 +6,7 @@ interface PrintableReportProps { } const formatDate = (dateString: string) => { + if (!dateString) return ''; // Tries to parse common date formats like DD.MM.YYYY or YYYY-MM-DD const parts = dateString.split(/[.\-/]/); if (parts.length === 3) {