Skip to content

Commit

Permalink
Fixed bug in project card display (#48)
Browse files Browse the repository at this point in the history
* fixed date formatting error in project card
  • Loading branch information
elimelt authored Oct 1, 2023
1 parent 2aa6a93 commit 32cb418
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend-v2/components/AdminForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
personTemplate,
projectTemplate,
Value
} from "../pages/admin";
} from "../devpages/admin";

import * as ImageService from "../back_end/api/image.js"
import * as EventService from "../back_end/api/events.js"
Expand Down
2 changes: 1 addition & 1 deletion frontend-v2/components/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function ProjectCard(props: IProjectCard) {
<Box justifyContent='flex-start' width='100%'>
<Text fontSize='sm'>
{startDate.toLocaleDateString()} •{" "}
{completed ? endDate.toLocaleTimeString() : "Present"}
{completed ? endDate.toLocaleDateString() : "Present"}
</Text>
</Box>
</Skeleton>
Expand Down

0 comments on commit 32cb418

Please sign in to comment.