Fix swallowed formatDate function
This commit is contained in:
@@ -147,7 +147,9 @@ export default function StudentsPage() {
|
|||||||
|
|
||||||
return searchMatch && tierMatch && courseMatch
|
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 }
|
catch { return iso }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user