260121_01_ENH : client env 정규화 및 로그인 페이지 오류 수정

This commit is contained in:
2026-01-21 09:48:35 +09:00
parent b2c4267e0e
commit 58f8577386
2 changed files with 18 additions and 15 deletions

View File

@@ -6,7 +6,7 @@ import {Card, CardContent, CardHeader} from "@/components/ui/card";
import {Input} from "@/components/ui/input";
import React, {useEffect, useRef, useState} from "react";
import { nextApi } from "@/lib/http-client";
import {useRouter, useSearchParams} from "next/navigation";
import {useSearchParams} from "next/navigation";
import {LoginUser} from "@/types/auth";
import { useAuth } from "@/hooks/useAuth";
import { useLoading } from "@/hooks/useLoading";
@@ -35,12 +35,15 @@ const LoginPage = () => {
const tryLogin = () => {
if(!userId){
alert("아이디를 입력해 주세요");
return;
}
if(!userPw){
alert("PW를 입력해 주세요");
return;
}
if(loginType === "call" && !seatNum){
alert("자리번호를 입력해 주세요");
return;
}
setError(null);