Skip to content

Commit

Permalink
fix: convert meetdate to string before comparing
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Jul 10, 2024
1 parent f281d05 commit a8765dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/frontend/src/routes/pdf.$reportId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export const PDF = () => {
const snapshotReport = JSON.parse(snapshot.report);
const diff = getDiff(snapshotReport, {
...reportQuery.results!,
createdAt: reportQuery.results!.createdAt.toISOString(),
createdAt: reportQuery.results!.createdAt?.toISOString(),
meetDate: reportQuery.results!.meetDate?.toISOString(),
});

console.log({ snapshotReport, report: reportQuery.results, diff });
Expand Down

0 comments on commit a8765dc

Please sign in to comment.