From 69ddacc7cf2b5426552394eb1358e905825de462 Mon Sep 17 00:00:00 2001 From: z0x Date: Wed, 7 May 2025 15:31:41 -0400 Subject: [PATCH] fix(index): reading time non-null assertion --- src/components/BlogCard.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BlogCard.astro b/src/components/BlogCard.astro index 5d9240b..85736fd 100644 --- a/src/components/BlogCard.astro +++ b/src/components/BlogCard.astro @@ -14,7 +14,7 @@ const { entry } = Astro.props as { }; const formattedDate = formatDate(entry.data.date); -const readTime = readingTime(entry.body!); +const readTime = readingTime(entry.body ?? ""); ---