diff --git a/src/features/Students/StudentsTable/columns.jsx b/src/features/Students/StudentsTable/columns.jsx index f33d7b97..9ab396e2 100644 --- a/src/features/Students/StudentsTable/columns.jsx +++ b/src/features/Students/StudentsTable/columns.jsx @@ -32,17 +32,29 @@ const getColumns = props => [ { Header: 'Created', accessor: 'created', - Cell: ({ row }) => new Date(row.values.created).toUTCString(), + Cell: ({ row }) => ( + row.values.created + ? new Date(row.values.created).toUTCString() + : '' + ), }, { Header: 'First Access', accessor: 'first_access', - Cell: ({ row }) => new Date(row.values.first_access).toUTCString(), + Cell: ({ row }) => ( + row.values.first_access + ? new Date(row.values.first_access).toUTCString() + : '' + ), }, { Header: 'Last Access', accessor: 'last_access', - Cell: ({ row }) => new Date(row.values.last_access).toUTCString(), + Cell: ({ row }) => ( + row.values.last_access + ? new Date(row.values.last_access).toUTCString() + : '' + ), }, { Header: 'Grade',