Skip to content

Commit

Permalink
feat: fix format to return number
Browse files Browse the repository at this point in the history
  • Loading branch information
martapanc committed Aug 22, 2023
1 parent 32503e4 commit 2a63819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/organisms/about-work/Education.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const Education = ({ schools }: EducationProps) => {
);
};

function format(inputDate: string): string {
function format(inputDate: string): number {
const date = new Date(inputDate);
return date.getFullYear();
}
Expand Down

0 comments on commit 2a63819

Please sign in to comment.