Skip to content

Commit

Permalink
fix: build fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Raj <mailme@varunraj.in>
  • Loading branch information
varun-raj committed Aug 23, 2024
1 parent 82510b8 commit abcf6e3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file added bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-scroll-area": "^1.1.0",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-switch": "^1.1.0",
"@radix-ui/react-toast": "^1.2.1",
Expand Down
4 changes: 1 addition & 3 deletions src/helpers/person.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ interface IAPIPerson extends Omit<IPerson, 'birthDate' | 'updatedAt'> {
export const cleanUpPerson = (person: IAPIPerson, skipMock?: boolean): IPerson => {
return {
...person,
// thumbnailPath: PERSON_THUBNAIL_PATH(person.id),
thumbnailPath: person.name === "Varun Raj" || skipMock === true ? PERSON_THUBNAIL_PATH(person.id) : "https://i.pravatar.cc/150?u=" + person.id,

thumbnailPath: PERSON_THUBNAIL_PATH(person.id),
birthDate: person.birthDate ? new Date(person.birthDate) : null,
updatedAt: new Date(person.updatedAt),
}
Expand Down

0 comments on commit abcf6e3

Please sign in to comment.