Skip to content

Commit

Permalink
Fixed toLocaleDateString IndividualGroupPage.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
jhagendoornCP authored Jun 4, 2024
1 parent 6413c3a commit 67b7236
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/pages/IndividualGroupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ const IndividualGroupPage: React.FC<Props> = ({
}
}, [loading]);

const dateObj = group ? new Date(group?.created) : undefined;

return (
<Box
width="100vw"
Expand Down Expand Up @@ -274,7 +276,7 @@ const IndividualGroupPage: React.FC<Props> = ({
Created On
</Heading>
<Text>
{new Date(group.created).toLocaleDateString()}
{dateObj ? dateObj.toString() : ""}
</Text>
</Box>
<Box
Expand Down

0 comments on commit 67b7236

Please sign in to comment.