Skip to content

Commit

Permalink
๐Ÿ”ฅ Edit: FTI -> fti ๊ฒฝ๋กœ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
KingBoRam committed Sep 9, 2024
1 parent 0b62324 commit 23438bf
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 23438bf

Please sign in to comment.