From 446f309d78f17b0df11cd26ad2d4886376d70567 Mon Sep 17 00:00:00 2001 From: jerry Date: Sun, 19 May 2024 09:04:01 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B0=90=EB=A7=89=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/My/My.tsx | 2 ++ src/pages/home/Login.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/pages/My/My.tsx b/src/pages/My/My.tsx index 54da0ee..12bfc1a 100644 --- a/src/pages/My/My.tsx +++ b/src/pages/My/My.tsx @@ -46,6 +46,8 @@ const My = () => { const renderComponent = () => { switch (streak % 10) { + case 0: + return ; case 1: return ; case 2: diff --git a/src/pages/home/Login.tsx b/src/pages/home/Login.tsx index fdcf302..57f54ae 100644 --- a/src/pages/home/Login.tsx +++ b/src/pages/home/Login.tsx @@ -9,6 +9,8 @@ const Login = () => { const [username, setUsername] = useState(''); const handleLogin = async () => { + if (!username) return; + const result = await loginApi(username); const memberId = result?.data?.userId;