From 02d452c00c64a9aadfea1072224e9903c27728d3 Mon Sep 17 00:00:00 2001 From: Vincent Voyer Date: Tue, 21 Nov 2023 01:13:54 +0100 Subject: [PATCH] update --- examples/next/src/app/fathom.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/next/src/app/fathom.tsx b/examples/next/src/app/fathom.tsx index 4f967910..efac2475 100644 --- a/examples/next/src/app/fathom.tsx +++ b/examples/next/src/app/fathom.tsx @@ -20,7 +20,7 @@ function TrackPageView() { if (!pathname) return; trackPageview({ - url: pathname + searchParams.toString(), + url: pathname + searchParams?.toString() ?? "", referrer: document.referrer, }); }, [pathname, searchParams]);