File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
frontend/src/pages/MyPage/components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { useState, useEffect } from "react";
4
4
5
5
import useAuth from "@/hooks/useAuth" ;
6
6
import Button from "@/components/Button/Button" ;
7
- import { useToast } from "@/components/Toast/useToast" ;
8
7
import ReplayLectureCard from "./ReplayLectureCard" ;
8
+ import { useToast } from "@/components/Toast/useToast" ;
9
9
10
10
import EnterIcon from "@/assets/svgs/enter.svg?react" ;
11
11
import ProfileBig from "@/assets/imgs/profileBig.png" ;
@@ -68,8 +68,8 @@ const MyPageSection = () => {
68
68
headers : { Authorization : localStorage . getItem ( "token" ) }
69
69
}
70
70
)
71
- . then ( ( result ) => {
72
- const { username, email } = result . data ;
71
+ . then ( ( response ) => {
72
+ const { username, email } = response . data ;
73
73
localStorage . setItem ( "username" , username ) ;
74
74
localStorage . setItem ( "email" , email ) ;
75
75
setUsername ( username ) ;
You can’t perform that action at this time.
0 commit comments