diff --git a/src/components/Datetime.tsx b/src/components/Datetime.tsx index cc0bc5afe..9d32eac39 100644 --- a/src/components/Datetime.tsx +++ b/src/components/Datetime.tsx @@ -2,7 +2,7 @@ import { LOCALE } from "@config"; interface DatetimesProps { pubDatetime: string | Date; - modDatetime: string | Date | undefined; + modDatetime: string | Date | undefined | null; } interface Props extends DatetimesProps { diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index a28b90a21..dfeb001a4 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -12,7 +12,7 @@ export interface Props { ogImage?: string; canonicalURL?: string; pubDatetime?: Date; - modDatetime?: Date; + modDatetime?: Date | null; scrollSmooth?: boolean; }