From 518a42fe5a5ffdebeb48492e13feb11059423ccf Mon Sep 17 00:00:00 2001 From: Bahugunajii Date: Wed, 20 Mar 2024 13:19:12 +0530 Subject: [PATCH] check is start date exists in report --- app/reports/reports_list.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/reports/reports_list.tsx b/app/reports/reports_list.tsx index 013c2dd..aa8a467 100644 --- a/app/reports/reports_list.tsx +++ b/app/reports/reports_list.tsx @@ -38,7 +38,7 @@ export default function ReportsList({ userId }: ReportsListProps) {

{report.test_name}

-

Date attempted: {formatDate(report.start_date) ?? "Date not available"}

+

Date attempted: {report.start_date ? formatDate(report.start_date) : "Date not available"}

))}