Skip to content

Commit

Permalink
check is start date exists in report
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahugunajii committed Mar 20, 2024
1 parent 8ddc694 commit 518a42f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/reports/reports_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function ReportsList({ userId }: ReportsListProps) {
<div className={`${index % 2 === 0 ? 'bg-orange-200' : 'bg-red-200'} h-full w-2 absolute left-0 top-0 rounded-s-md`}></div>
<div className="text-left mx-6 md:mx-8">
<p className="text-sm md:text-base font-semibold">{report.test_name}</p>
<p className="text-gray-700 text-sm md:text-base mt-2">Date attempted: {formatDate(report.start_date) ?? "Date not available"}</p>
<p className="text-gray-700 text-sm md:text-base mt-2">Date attempted: {report.start_date ? formatDate(report.start_date) : "Date not available"}</p>
</div>
</Link>
))}
Expand Down

0 comments on commit 518a42f

Please sign in to comment.