Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
khg5357 committed Aug 23, 2024
2 parents 1162ab3 + 0e439eb commit cbec2a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/apis/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export const baseInstance = (
export const authInstance = (
options: AxiosRequestConfig = {},
): AxiosInstance => {
// const TOKEN = getCookie('access-token');
const TOKEN = process.env.REACT_APP_REFRESH_TOKEN;
const TOKEN = getCookie('access-token');
return axios.create({
baseURL: BASE_URL,
headers: {
Expand Down
Binary file added src/assets/samples/emptyProfile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 3 additions & 5 deletions src/components/MyPage/MyPageMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ const MyPageMain = () => {
};

useEffect(() => {
if (!userInfo) {
getMyInfo().then((res) => {
setUserInfo(res.data);
});
}
getMyInfo().then((res) => {
setUserInfo(res.data);
});
}, []);

return (
Expand Down

0 comments on commit cbec2a8

Please sign in to comment.