Skip to content

Commit

Permalink
Merge pull request #45 from KingBoRam/feat/myprofile
Browse files Browse the repository at this point in the history
🔥 Edit: FTI -> fti 경로 수정
  • Loading branch information
KingBoRam authored Sep 9, 2024
2 parents 0b62324 + 23438bf commit 5d429cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/api/apis/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const signinAPI = async (email: string, password: string) => {
email,
password,
});
console.log(response.data);
const access = response.data.access;

if (response.data.refresh) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/myprofile/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const UserInfo: React.FC<UserInfoProps> = ({ user, refetchUserProfile }) => {
if (FtiResults) {
openModalCenter();
} else {
navigate('/FTI');
navigate('/fti');
}
};

Expand Down Expand Up @@ -90,7 +90,7 @@ const UserInfo: React.FC<UserInfoProps> = ({ user, refetchUserProfile }) => {
<p className="text-[#666666] xs:text-[14px]">이전 테스트 결과를 프로필에 저장하시겠어요?</p>
<div className="mt-8 flex w-full gap-3">
<button
onClick={() => navigate('/FTI')}
onClick={() => navigate('/fti')}
className="w-full rounded-xl border-2 border-orange-400 px-1 py-2 font-semibold text-orange-500 hover:bg-orange-50">
FTI 테스트로 이동
</button>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/auth/Signin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const Signin = () => {

const onSubmit: SubmitHandler<InputProps> = async (data) => {
try {
await signinAPI(data.email, data.password);
const response = await signinAPI(data.email, data.password);
console.log(response);
navigate('/');
console.log('Signin successful');
} catch (error) {
Expand Down

0 comments on commit 5d429cb

Please sign in to comment.