diff --git a/blocks/hero242.tsx b/blocks/hero242.tsx index 2786c32..6e98a01 100644 --- a/blocks/hero242.tsx +++ b/blocks/hero242.tsx @@ -157,11 +157,14 @@ const Hero242 = ({ className }: Hero242Props) => { className="w-[150px]" nameKey="views" labelFormatter={(value) => { - return new Date(value).toLocaleDateString("en-US", { - month: "short", - day: "numeric", - year: "numeric", - }); + return new Date(String(value)).toLocaleDateString( + "en-US", + { + month: "short", + day: "numeric", + year: "numeric", + } + ); }} /> }