From 8ed6fd7ef2409cc8c207d22f5924a8851f56ca49 Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Tue, 7 Nov 2023 16:18:32 +0100 Subject: [PATCH] Fix DateField formatting --- src/pages/participant/fields.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/participant/fields.tsx b/src/pages/participant/fields.tsx index 3017cf1..f1de2b4 100644 --- a/src/pages/participant/fields.tsx +++ b/src/pages/participant/fields.tsx @@ -104,10 +104,11 @@ function TextAreaField({title, description, data}: FieldProps) { } function DateField({title, description, data}: FieldProps) { + const date = data ? formatDatetime(data) : ''; return (
- {formatDatetime(data)} + {date}
); }