Skip to content

Commit

Permalink
[FIX] 오타 수정 #57
Browse files Browse the repository at this point in the history
  • Loading branch information
yoouyeon committed Aug 11, 2023
1 parent 17ee3a8 commit b370dc8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/SignUp/NicknameCheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
const statusMessage: Record<NicknameStatusType, string> = {
AVAILABLE_NICKNAME: '사용 가능한 닉네임입니다.',
NICKNAME_ALREADY_EXISTS: '이미 사용 중인 닉네임입니다.',
NICKNAME_NO_ENTERED: '닉네임을 입력해주세요',
NICKNAME_NOT_ENTERED: '닉네임을 입력해주세요',
INTERNAL_SERVER_ERROR: '서버 오류입니다. 잠시 후 다시 시도해주세요.',
};

Expand Down
2 changes: 1 addition & 1 deletion src/types/Signup/nickname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ServerError } from './common';
export const NicknameStatus = [
'AVAILABLE_NICKNAME',
'NICKNAME_ALREADY_EXISTS',
'NICKNAME_NO_ENTERED',
'NICKNAME_NOT_ENTERED',
ServerError,
] as const;

Expand Down
1 change: 0 additions & 1 deletion src/utils/SignUp/signUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export async function signup(
await axios.post('/register/register_process', signupForm);
return 'USER_CREATED';
} catch (error: unknown) {
console.log(error);
if (isAxiosError(error) && error.response) {
const errorCode = error.response.data;
if (SignupStatusTypeChecker(errorCode))
Expand Down

0 comments on commit b370dc8

Please sign in to comment.