From 034111b62d5b90d54ad5449c52cdac018a7ff9d4 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Thu, 22 Oct 2020 14:30:48 +0300 Subject: [PATCH] fix Time when date is null Signed-off-by: mihaisc --- src/components/atoms/Time.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/atoms/Time.tsx b/src/components/atoms/Time.tsx index d78746aad..8d18e5608 100644 --- a/src/components/atoms/Time.tsx +++ b/src/components/atoms/Time.tsx @@ -13,7 +13,9 @@ export default function Time({ const dateNew = isUnix ? new Date(Number(date) * 1000) : new Date(date) const dateIso = dateNew.toISOString() - return ( + return !date ? ( + <> + ) : (