From aff67e97eb83802872789552c6052dd53fcf26a2 Mon Sep 17 00:00:00 2001 From: Andre Wanlin Date: Mon, 8 Nov 2021 11:41:52 -0600 Subject: [PATCH] Small refactor based on feedback Signed-off-by: Andre Wanlin --- .../src/components/PullRequestTable/PullRequestTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/azure-devops/src/components/PullRequestTable/PullRequestTable.tsx b/plugins/azure-devops/src/components/PullRequestTable/PullRequestTable.tsx index 52c8d98a97..f91fc34c58 100644 --- a/plugins/azure-devops/src/components/PullRequestTable/PullRequestTable.tsx +++ b/plugins/azure-devops/src/components/PullRequestTable/PullRequestTable.tsx @@ -79,7 +79,7 @@ const columns: TableColumn[] = [ width: 'auto', render: (row: Partial) => DateTime.fromISO( - row.creationDate ? row.creationDate.toString() : new Date().toString(), + (row.creationDate ?? new Date()).toString(), ).toRelative(), }, ];