Skip to content

Commit

Permalink
fix: Make typescript happy
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 22, 2024
1 parent 4e1ea0a commit dc65286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web/app/dashboard/bookmarks/components/LinkCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import { Skeleton } from "@/components/ui/skeleton";

function isStillCrawling(bookmark: ZBookmark) {
return (
!bookmark.content.crawledAt && Date.now() - bookmark.createdAt < 30 * 1000
!bookmark.content.crawledAt &&
Date.now().valueOf() - bookmark.createdAt.valueOf() < 30 * 1000
);
}

Expand Down

0 comments on commit dc65286

Please sign in to comment.