From bc6309b38a43cd1b9b3b1dca9f0a6739040b6ea1 Mon Sep 17 00:00:00 2001 From: Aaron Villalpando Date: Tue, 11 Jun 2024 20:51:51 -0700 Subject: [PATCH] fix linter issue --- typescript/fiddle-frontend/app/PostHogPageView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/fiddle-frontend/app/PostHogPageView.tsx b/typescript/fiddle-frontend/app/PostHogPageView.tsx index 5dae22911..b875ff763 100644 --- a/typescript/fiddle-frontend/app/PostHogPageView.tsx +++ b/typescript/fiddle-frontend/app/PostHogPageView.tsx @@ -13,7 +13,7 @@ export default function PostHogPageView(): null { useEffect(() => { if (pathname && posthog) { let url = window.origin + pathname - if (searchParams.toString()) { + if (searchParams?.toString()) { url = url + `?${searchParams.toString()}` } posthog.capture('$pageview', {