From 8eb806ae1a741dd65f3b284a2af5592bce14cbad Mon Sep 17 00:00:00 2001 From: Leandro Diato Date: Wed, 25 Nov 2020 15:29:36 -0800 Subject: [PATCH] Support for accounts with no registration date. --- .../src/components/Admin/Accounts/AccountsTableColumns.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-portal/src/components/Admin/Accounts/AccountsTableColumns.jsx b/dev-portal/src/components/Admin/Accounts/AccountsTableColumns.jsx index a163e780e..7e97d1ce7 100644 --- a/dev-portal/src/components/Admin/Accounts/AccountsTableColumns.jsx +++ b/dev-portal/src/components/Admin/Accounts/AccountsTableColumns.jsx @@ -49,7 +49,7 @@ export const IsAdmin = { export const DateRegistered = { id: 'DateRegistered', title: 'Date registered', - render: account => formatDate(account.DateRegistered), + render: account => account.DateRegistered ? formatDate(account.DateRegistered) : '-', ordering: { iteratee: 'DateRegistered' }