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;