Skip to content

Commit

Permalink
track zip_file_uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww committed Nov 26, 2024
1 parent 3605d16 commit 0808775
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/routes/_oh._index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useGitHubUser } from "#/hooks/query/use-github-user";
import { useGitHubAuthUrl } from "#/hooks/use-github-auth-url";
import { useConfig } from "#/hooks/query/use-config";
import { useAuth } from "#/context/auth-context";
import posthog from "posthog-js";

Check failure on line 15 in frontend/src/routes/_oh._index/route.tsx

View workflow job for this annotation

GitHub Actions / Lint frontend

`posthog-js` import should occur before import of `./suggestion-box`

function Home() {
const { token, gitHubToken } = useAuth();
Expand Down Expand Up @@ -78,6 +79,7 @@ function Home() {
dispatch(
setImportedProjectZip(await convertZipToBase64(zip)),
);
posthog.capture("zip_file_uploaded");
formRef.current?.requestSubmit();
} else {
// TODO: handle error
Expand Down

0 comments on commit 0808775

Please sign in to comment.