From dc65286ad6fe232130eca1d89f11c1d5be851dea Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Thu, 22 Feb 2024 18:32:39 +0000
Subject: fix: Make typescript happy

---
 packages/web/app/dashboard/bookmarks/components/LinkCard.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'packages/web/app/dashboard/bookmarks/components/LinkCard.tsx')

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
   );
 }
 
-- 
cgit v1.2.3-70-g09d2

