Fix swallowed formatDate function

This commit is contained in:
2026-09-25 13:03:59 +05:30
parent ac5ca7b2bd
commit 7caccb0e2f

View File

@@ -147,7 +147,9 @@ export default function StudentsPage() {
return searchMatch && tierMatch && courseMatch
})
}
const formatDate = (iso: string) => {
try { return new Date(iso).toLocaleDateString("en-IN", { day: "numeric", month: "short", year: "numeric" }) }
catch { return iso }
}