diff --git a/src/helpers/person.helper.ts b/src/helpers/person.helper.ts index 97a34bc..8002fa6 100644 --- a/src/helpers/person.helper.ts +++ b/src/helpers/person.helper.ts @@ -11,7 +11,7 @@ export const cleanUpPerson = (person: IAPIPerson, skipMock?: boolean): IPerson = return { ...person, thumbnailPath: PERSON_THUBNAIL_PATH(person.id), - birthDate: person.birthDate, + birthDate: person.birthDate ? new Date(person.birthDate) : null, updatedAt: new Date(person.updatedAt), } } \ No newline at end of file diff --git a/src/types/person.d.ts b/src/types/person.d.ts index 3490140..3e0163b 100644 --- a/src/types/person.d.ts +++ b/src/types/person.d.ts @@ -1,7 +1,7 @@ export interface IPerson { id: string; name: string; - birthDate: string | null; + birthDate: Date | null; thumbnailPath: string; isHidden: boolean; updatedAt: Date;