Skip to content

Commit 02cbb2f

Browse files
committed
Merge branch 'feature/231211-add-api-to-mypage' of https://github.com/LellowMellow/web13_Boarlog into feature/231211-add-api-to-mypage
2 parents f5cbb08 + ee5c8f3 commit 02cbb2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/pages/MyPage/components/MyPageSection.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { useState, useEffect } from "react";
44

55
import useAuth from "@/hooks/useAuth";
66
import Button from "@/components/Button/Button";
7-
import { useToast } from "@/components/Toast/useToast";
87
import ReplayLectureCard from "./ReplayLectureCard";
8+
import { useToast } from "@/components/Toast/useToast";
99

1010
import EnterIcon from "@/assets/svgs/enter.svg?react";
1111
import ProfileBig from "@/assets/imgs/profileBig.png";
@@ -68,8 +68,8 @@ const MyPageSection = () => {
6868
headers: { Authorization: localStorage.getItem("token") }
6969
}
7070
)
71-
.then((result) => {
72-
const { username, email } = result.data;
71+
.then((response) => {
72+
const { username, email } = response.data;
7373
localStorage.setItem("username", username);
7474
localStorage.setItem("email", email);
7575
setUsername(username);

0 commit comments

Comments
 (0)