fix: update birthDate type in IPerson interface and adjust cleanUpPerson function
This commit is contained in:
@@ -11,7 +11,7 @@ export const cleanUpPerson = (person: IAPIPerson, skipMock?: boolean): IPerson =
|
||||
return {
|
||||
...person,
|
||||
thumbnailPath: PERSON_THUBNAIL_PATH(person.id),
|
||||
birthDate: person.birthDate ? new Date(person.birthDate) : null,
|
||||
birthDate: person.birthDate,
|
||||
updatedAt: new Date(person.updatedAt),
|
||||
}
|
||||
}
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
export interface IPerson {
|
||||
id: string;
|
||||
name: string;
|
||||
birthDate: Date | null;
|
||||
birthDate: string | null;
|
||||
thumbnailPath: string;
|
||||
isHidden: boolean;
|
||||
updatedAt: Date;
|
||||
|
||||
Reference in New Issue
Block a user