diff --git a/src/components/MarketPlace/PopUp/MarketPopUp.jsx b/src/components/MarketPlace/PopUp/MarketPopUp.jsx index f9d4a42..38ba43d 100644 --- a/src/components/MarketPlace/PopUp/MarketPopUp.jsx +++ b/src/components/MarketPlace/PopUp/MarketPopUp.jsx @@ -48,20 +48,14 @@ const MarketPopUp = ({ details, onClose, situation, marketInt }) => { return; } - toast.success("Message sent", { - autoClose: 2500, - hideProgressBar: true, - }); - setMarketMsg({ data: marketMessageRes, state: true }); - setTimeout(() => onClose(), 2000); } catch (error) { throw new Error(error); } finally { setTimeout(() => { setTextValue(""); - setMarketMsg({ loading: false }); - }, 2000); + setMarketMsg({ loading: false, state: false }); + }, 5000); } }; @@ -209,25 +203,28 @@ const MarketPopUp = ({ details, onClose, situation, marketInt }) => { onChange={handleInputChange} /> - +
Interested in the task?