Skip to content

Commit

Permalink
chore: track only have userName
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Oct 31, 2023
1 parent b141d40 commit 677c57f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions figma-plugin/ui-src/pages/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ const App = () => {
const { userName } = useAppState();
const { track } = useJune();

track({
event: "icona:plugin_open",
properties: { userName },
timestamp: new Date(),
});
if (userName) {
track({
event: "icona:plugin_open",
properties: { userName },
timestamp: new Date(),
});
}

return (
<Box className={styles.container}>
Expand Down

0 comments on commit 677c57f

Please sign in to comment.