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 },