Skip to content

Commit

Permalink
fix(web): tracking types
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt committed Sep 3, 2024
1 parent 12c5e19 commit 63541ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/lib/tracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { useCallback } from "react";
import type { EventOptionsTuple } from "server/common/tracking";
import type { PlausibleEvents } from "types/plausible-events";

export const useTracking = <const N extends keyof PlausibleEvents>() => {
export const useTracking = () => {
const trackPlausible = usePlausible<PlausibleEvents>();
const { track: trackOpenPanel } = useOpenPanel();

return useCallback(
(
<N extends keyof PlausibleEvents>(
eventName: N,
...rest: PlausibleEvents[N] extends never
? []
Expand Down

0 comments on commit 63541ea

Please sign in to comment.