Skip to content

Commit

Permalink
Support empty event data
Browse files Browse the repository at this point in the history
  • Loading branch information
wongchito committed Feb 11, 2024
1 parent 01ce330 commit 91e1503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/event-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function gtag(...args: any) {
}
}

const customEvent = (type: string, data: Record<string, any>) => {
const customEvent = (type: string, data: Record<string, any> = {}) => {
gtag('event', type, data);
};

Expand Down

0 comments on commit 91e1503

Please sign in to comment.