From 1b9bad9d19793510bec785f3f87398186f44ce5f Mon Sep 17 00:00:00 2001 From: Catalin Rosu Date: Mon, 29 Jul 2024 17:30:00 +0300 Subject: [PATCH] Format --- src/lib/markdown/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/markdown/index.js b/src/lib/markdown/index.js index 5f8ff60ab..2d215f4d8 100644 --- a/src/lib/markdown/index.js +++ b/src/lib/markdown/index.js @@ -21,7 +21,7 @@ export function getPostBySlug(path, slug) { const date = data.date && typeof data.date !== "string" ? format(data.date, "MMMM dd, yyyy") - : data.date ?? null; + : (data.date ?? null); return { path: realSlug, frontmatter: { ...data, date, reviewed: true },