diff --git a/src/features/Students/StudentsTable/columns.jsx b/src/features/Students/StudentsTable/columns.jsx index f33d7b97..0f0646a6 100644 --- a/src/features/Students/StudentsTable/columns.jsx +++ b/src/features/Students/StudentsTable/columns.jsx @@ -37,12 +37,20 @@ const getColumns = props => [ { 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',