Skip to content

Commit

Permalink
quick string fix (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
abarrell authored Aug 9, 2024
1 parent c919dd6 commit 2ab8757
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/ui/app/src/next-app/NextApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import PageLoader from "next/dist/client/page-loader";
import { Router } from "next/router";
import { ReactElement, useEffect } from "react";
import { SWRConfig } from "swr";
import { StringType } from "../../../../template-resolver/src/generated/api/resources/api/resources/v1/resources/read";
import { capturePosthogEvent, initializePosthog } from "../analytics/posthog";
import { DocsProps, ThemeScript, store } from "../atoms";
import { FernErrorBoundary } from "../components/FernErrorBoundary";
Expand All @@ -18,7 +17,7 @@ export function NextApp({ Component, pageProps, router }: AppProps<DocsProps | u
initializePosthog();

// Track page views
const handleRouteChange = (url: StringType) => {
const handleRouteChange = (url: string) => {
try {
capturePosthogEvent("$pageview");
typeof window !== "undefined" &&
Expand Down

0 comments on commit 2ab8757

Please sign in to comment.