@@ -17,16 +17,16 @@ function ChatRequestButton({ type }: { type: 'sending' | 'receiving' }) {
1717 //채팅 요청 취소(요청 보낸 사람)
1818 const cancel = async ( ) => {
1919 if ( ! currentRecord ?. recordId && ! pastRecord ?. recordId ) {
20- console . log ( 'record가 존재하지 않습니다' ) ;
20+ // console.log('record가 존재하지 않습니다');
2121 return ;
2222 }
2323 try {
24- console . log ( currentRecord ) ;
24+ // console.log(currentRecord);
2525 const { code } = await cancelChatRequest (
2626 currentRecord ?. recordId || Number ( pastRecord ?. recordId ) ,
2727 ) ;
2828 if ( code === 200 ) {
29- console . log ( '취소 요청 성공' ) ;
29+ // console.log('취소 요청 성공');
3030 closeSheet ( 'isRequestSendingSheetOpen' ) ;
3131 } else {
3232 throw new Error ( '취소 요청 실패' ) ;
@@ -42,11 +42,10 @@ function ChatRequestButton({ type }: { type: 'sending' | 'receiving' }) {
4242 //sse로 받은 상대 정보로 '보내는 사람' 바꾸기
4343 const createChat = async ( ) => {
4444 try {
45- const { code, data, message } = await createChatroom (
45+ const { code, data } = await createChatroom (
4646 requesterInfo . emotionRecordId as number ,
4747 requesterInfo . nickname ,
4848 ) ;
49- console . log ( code , message , data ) ;
5049
5150 if ( code === 200 ) {
5251 const chatRoomId = data . chatRoomId ;
@@ -66,7 +65,7 @@ function ChatRequestButton({ type }: { type: 'sending' | 'receiving' }) {
6665 throw new Error ( '이미 취소된 요청입니다.' ) ;
6766 }
6867 } catch ( error ) {
69- console . log ( error ) ;
68+ // console.log(error);
7069 openModal ( {
7170 title : '이미 취소된 요청입니다' ,
7271 onConfirm : ( ) => {
@@ -87,7 +86,7 @@ function ChatRequestButton({ type }: { type: 'sending' | 'receiving' }) {
8786 requesterInfo . nickname ,
8887 ) ;
8988 if ( code === 200 ) {
90- console . log ( '거절 성공' ) ;
89+ // console.log('거절 성공');
9190 closeSheet ( 'isRequestReceivingSheetOpen' ) ;
9291 } else {
9392 throw new Error ( '요청 취소 실패' ) ;
0 commit comments