From 3b828741698d1f64ab95db7342802b62b3669d11 Mon Sep 17 00:00:00 2001 From: junghyeonsu Date: Tue, 31 Oct 2023 14:48:39 +0900 Subject: [PATCH] feat: identify early return --- figma-plugin/ui-src/hooks/useJune.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/figma-plugin/ui-src/hooks/useJune.ts b/figma-plugin/ui-src/hooks/useJune.ts index 7aa41c4..25c3636 100644 --- a/figma-plugin/ui-src/hooks/useJune.ts +++ b/figma-plugin/ui-src/hooks/useJune.ts @@ -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",