diff --git a/src/components/Buyer/BuyerWriteOpenConsult/FianlWritePopup.tsx b/src/components/Buyer/BuyerWriteOpenConsult/FianlWritePopup.tsx index bb2b4c61..3e596f04 100644 --- a/src/components/Buyer/BuyerWriteOpenConsult/FianlWritePopup.tsx +++ b/src/components/Buyer/BuyerWriteOpenConsult/FianlWritePopup.tsx @@ -5,11 +5,7 @@ import { useSetRecoilState } from 'recoil'; import styled from 'styled-components'; import { Green, Grey4, LightGreen, White } from 'styles/color'; import { Body1, Body3 } from 'styles/font'; -import { - isBuyPopupOpenState, - isPostPopupOpenState, - isSendPopupOpenState, -} from 'utils/atom'; +import { isPostPopupOpenState } from 'utils/atom'; import { convertCategoryEnum } from 'utils/convertCategoryEnum'; interface FianlWritePopupProps { title: string; @@ -31,12 +27,8 @@ function FinalWritePopup({ title, content, category }: FianlWritePopupProps) { isCompleted: true, }; try { - const res: any = await patchOpenConsult(body); - if (res?.status === 200) { - navigate('/consult/?type=open-consult'); - } else { - console.log(res); - } + await patchOpenConsult(body); + navigate('/consult/?type=open-consult'); } catch (err) { alert(err); } diff --git a/src/components/Seller/SellerOpenConsult/IsSendPopup.tsx b/src/components/Seller/SellerOpenConsult/IsSendPopup.tsx index 268f3503..52467063 100644 --- a/src/components/Seller/SellerOpenConsult/IsSendPopup.tsx +++ b/src/components/Seller/SellerOpenConsult/IsSendPopup.tsx @@ -23,6 +23,7 @@ function IsSendPopup({ text, setText, setIsReplying }: IsSendPopupProps) { }; try { const res: any = await postComment(body); + console.log(res); if (res?.status === 200 || res.status === 201) { setText(''); setIsSendPopupOpen(false);