From dc65286ad6fe232130eca1d89f11c1d5be851dea Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Thu, 22 Feb 2024 18:32:39 +0000 Subject: [PATCH] fix: Make typescript happy --- packages/web/app/dashboard/bookmarks/components/LinkCard.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web/app/dashboard/bookmarks/components/LinkCard.tsx b/packages/web/app/dashboard/bookmarks/components/LinkCard.tsx index 35696134..8d7a01d0 100644 --- a/packages/web/app/dashboard/bookmarks/components/LinkCard.tsx +++ b/packages/web/app/dashboard/bookmarks/components/LinkCard.tsx @@ -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 ); }