Skip to content

Commit

Permalink
♻️ Refactor: 불필요한 console 및 token 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-paik committed Nov 19, 2023
1 parent 279978c commit bb5e99f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/profile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { authInstance } from './axiosInstance';

/* 개인 프로필 정보 */
export const getUserProfile = async (token, account) => {
export const getUserProfile = async (account) => {
try {
const response = await authInstance.get(`/profile/${account}`);
return response.data;
Expand Down Expand Up @@ -32,10 +32,8 @@ export const getMyInfo = async () => {

/* 프로필 수정 */
export const editProfile = async (user) => {
console.log('user', { user });
try {
const response = await authInstance.put(`/user`, { user });
console.log('response', response);
return response.data;
} catch (error) {
console.log(error);
Expand Down

0 comments on commit bb5e99f

Please sign in to comment.