Skip to content

Commit

Permalink
Fix DateField formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed Nov 7, 2023
1 parent a05ef37 commit 8ed6fd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/participant/fields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ function TextAreaField({title, description, data}: FieldProps) {
}

function DateField({title, description, data}: FieldProps) {
const date = data ? formatDatetime(data) : '';
return (
<div>
<FieldHeader title={title} description={description} />
<Typography variant="body1">{formatDatetime(data)}</Typography>
<Typography variant="body1">{date}</Typography>
</div>
);
}
Expand Down

0 comments on commit 8ed6fd7

Please sign in to comment.