Skip to content

Commit

Permalink
fix: 에러 수정 (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwonh423 authored Aug 16, 2023
1 parent 830087e commit 43f46fe
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
1 change: 0 additions & 1 deletion frontend/src/apis/getApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const getApi = async <T>(
'Content-Type': 'application/json',
};

console.log(headers);
if (userToken) {
headers['Authorization'] = `Bearer ${userToken}`;
}
Expand Down
14 changes: 2 additions & 12 deletions frontend/src/components/MyInfo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { styled } from 'styled-components';
import Flex from '../common/Flex';
import InfoDefalutImg from '../../assets/InfoDefalutImg.svg';
import ModifyMyInfoIcon from '../../assets/ModifyMyInfoIcon.svg';
import Box from '../common/Box';
import Text from '../common/Text';
import Space from '../common/Space';
import { useEffect, useState } from 'react';
import UpdateMyInfo from './updateMyInfo';
import { useState } from 'react';
import { MyInfoType } from '../../types/MyInfo';
import UpdateMyInfo from './UpdateMyInfo';

const MyInfo = () => {
const [isThereImg, setisThereImg] = useState<boolean>(true);
Expand All @@ -18,14 +16,6 @@ const MyInfo = () => {
});
const user = JSON.parse(localStorage.getItem('user') || '');

// useEffect(()=>{
// setMyInfoName()
// }, [])

const onModifyInfo = () => {
setIsModifyMyInfo(true);
};

if (isModifyMyInfo) {
return (
<UpdateMyInfo
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/common/CheckBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const Checkbox = ({

const updateCheckedMembers = () => {
const updatedChecked = !isChecked;
console.log(updatedChecked);
setIsChecked(updatedChecked);
onChecked(updatedChecked, id);
};
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/pages/NewTopic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const NewTopic = () => {
//생성하기 버튼 눌렀을 때 postToServer로 TopicId 받고, 받은 topicId로 권한 추가
const topicId = await postToServer();

const result = await addAuthority(topicId);
if (topicId) routePage(`/topics/${topicId}`);
};

Expand All @@ -100,11 +99,9 @@ const NewTopic = () => {
? await mergeTopics()
: await createTopic();
const location = response.headers.get('Location');
console.log('LOCATION', location, response.headers);

if (location) {
const topicIdFromLocation = location.split('/')[2];
console.log('topic', topicIdFromLocation);
return topicIdFromLocation;
}
};
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/PinDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const PinDetail = ({
return topicAuthority.data;
};
const topicAuthorityList = checkTopicAuthority();
console.log(topicAuthorityList);
}, [topicId]);

useEffect(() => {
Expand Down

0 comments on commit 43f46fe

Please sign in to comment.