Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
typed-sigterm committed Feb 27, 2025
1 parent 7ca5971 commit c3534cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type TrackEvent =
const clientType = __APP__ ? 'app' : 'web';
type MixpanelResponse = Parameters<Callback>[0];

export async function track(event: TrackEvent, prop: Record<string, unknown>) {
export async function track(event: TrackEvent, prop?: Record<string, unknown>) {
const portable = clientType === 'app' ? await isPortable() : undefined;
return new Promise<MixpanelResponse>((resolve) => {
mp.track?.(event, {
Expand Down

0 comments on commit c3534cb

Please sign in to comment.