clean up 1

This commit is contained in:
Ebube
2023-05-19 11:28:40 +01:00
parent 4f107df131
commit 688f10e4a4
4 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ function DeleteJobPopout({details, onClose, situation}) {
setTimeout(()=>{
navigate('/myjobs', {replace: true})
onClose()
window.location.reload()
// window.location.reload()
}, 1000)
}).catch(error => {
setRequestStatus({laoding: false, status:false, message: 'Opps! something went wrong, try again'})
+2 -1
View File
@@ -62,6 +62,7 @@ const EditJobPopOut = ({ details, onClose, situation, country }) => {
job_uid: details.job_uid,
...values,
};
delete reqData?.country
try {
let res = await jobApi.jobManagerUpdateJob(reqData);
let { data } = await res;
@@ -261,7 +262,7 @@ const EditJobPopOut = ({ details, onClose, situation, country }) => {
{/* inputs ends here */}
</div>
</div>
{/* ERROR DISPLAY AND SUBMIT BUTTON */}
{/* ERROR DISPLAY AND SUBMIT BUTTON */}
<div className="content-footer w-full">
{/* error or success display */}
{requestStatus.message != "" &&