From 58bd696d643846cc3cde594d7d35cefb369ba61d Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Wed, 10 Jul 2024 14:29:47 -0700 Subject: [PATCH] Fix metadata html error --- src/components/elements/paged-list.tsx | 6 ++++-- src/styles/fonts.tsx | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/elements/paged-list.tsx b/src/components/elements/paged-list.tsx index 0ac45e3..998e821 100644 --- a/src/components/elements/paged-list.tsx +++ b/src/components/elements/paged-list.tsx @@ -93,8 +93,10 @@ const PagedList = ({children, ulProps, liProps, pageKey = "page", totalPages, pa }, [loadPage, router, currentPage, pageKey, searchParams]) useEffect(() => { - if (currentPage > 1 && !ref.current) goToPage(currentPage, true) - ref.current = true + if (currentPage > 1 && !ref.current) { + ref.current = true + goToPage(currentPage, true) + } }, [currentPage, goToPage]) const paginationButtons = usePagination(totalPages * items.length, currentPage, items.length, pagerSiblingCount) diff --git a/src/styles/fonts.tsx b/src/styles/fonts.tsx index be340f6..9fbbed0 100644 --- a/src/styles/fonts.tsx +++ b/src/styles/fonts.tsx @@ -4,4 +4,5 @@ export const sourceSans3 = Source_Sans_3({ subsets: ["latin"], display: "swap", variable: "--font-sans", + adjustFontFallback: false, })