diff --git a/examples/basic/pages/index/+Page.tsx b/examples/basic/pages/index/+Page.tsx index 8bfa28af..3882dbe4 100644 --- a/examples/basic/pages/index/+Page.tsx +++ b/examples/basic/pages/index/+Page.tsx @@ -34,7 +34,7 @@ const DateTime = ({ date, format }: { date: Date; format: (date: Date) => string localFormattedDate = allFormattedDates[localOffsetHours] } else { //@ts-ignore - localFormattedDate = window[`localFormattedDate${key}`] + localFormattedDate = window[`localFormattedDate${key}`] ?? format(date) } return (