Skip to content

Commit

Permalink
Fix: userId를 userInfo에서 꺼내오던 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sscoderati committed Jan 26, 2024
1 parent caf70f9 commit a8e22ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/register/RegisterCompany.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const RegisterCompany = () => {
type: "info",
isDarkMode,
});
return await sendEmailValidCode(email, userInfo.userId);
return await sendEmailValidCode(email, userId.toString());
};

//이메일 인증 버튼 누르면 실행되는 함수
Expand All @@ -84,7 +84,7 @@ const RegisterCompany = () => {
return;
}
setCodeChecked(true);
const response = await getEmailValid(userInfo.userId, code);
const response = await getEmailValid(userId.toString(), code);
if (response.status == 200) {
setIsCodeSame(true);
} else {
Expand Down

0 comments on commit a8e22ae

Please sign in to comment.