Skip to content

Commit

Permalink
feat: identify early return
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Oct 31, 2023
1 parent aacccf3 commit 3b82874
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions figma-plugin/ui-src/hooks/useJune.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export function useJune({ writeKey }: UseJuneProps) {
* 현재는 figma에서는 이메일을 받아올 수 있는 수단이 없음
*/
const identify = async ({ userName }: IdentifyProps) => {
if (!userName) {
return;
}

try {
await fetch(`${BASE_URL}/identify`, {
method: "POST",
Expand Down

0 comments on commit 3b82874

Please sign in to comment.