diff --git a/components/layout/footer.tsx b/components/layout/footer.tsx index fd2e9f947..0c690f251 100644 --- a/components/layout/footer.tsx +++ b/components/layout/footer.tsx @@ -8,14 +8,16 @@ import { getMenu } from 'lib/shopify'; import { Menu } from 'lib/shopify/types'; export default async function Footer() { + const currentYear = new Date().getFullYear(); + const copyrightDate = 2023 + (currentYear > 2023 ? `-${currentYear}` : ''); const menu = await getMenu('next-js-frontend-footer-menu'); return ( -