Skip to content

Commit

Permalink
fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronvg committed Jun 12, 2024
1 parent 1ed6a6e commit bc6309b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/fiddle-frontend/app/PostHogPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit bc6309b

Please sign in to comment.