From 677c57ffeaf264db30c10c9b72440cc403fe6fd7 Mon Sep 17 00:00:00 2001 From: junghyeonsu Date: Tue, 31 Oct 2023 15:57:26 +0900 Subject: [PATCH] chore: track only have userName --- figma-plugin/ui-src/pages/App.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/figma-plugin/ui-src/pages/App.tsx b/figma-plugin/ui-src/pages/App.tsx index 901f2a7..030cc2c 100644 --- a/figma-plugin/ui-src/pages/App.tsx +++ b/figma-plugin/ui-src/pages/App.tsx @@ -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 (