Skip to content

Commit

Permalink
chore: add save value to created in StudentsTable.
Browse files Browse the repository at this point in the history
  • Loading branch information
anfbermudezme committed Sep 11, 2023
1 parent 4a9f953 commit 69ec0be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/features/Students/StudentsTable/columns.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ 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',
Expand Down

0 comments on commit 69ec0be

Please sign in to comment.