diff --git a/front-end/src/Pages/Deliverables.jsx b/front-end/src/Pages/Deliverables.jsx index 518ab60..ed0f8e5 100644 --- a/front-end/src/Pages/Deliverables.jsx +++ b/front-end/src/Pages/Deliverables.jsx @@ -150,12 +150,7 @@ const onDeleteClick = async (deliverableId) => { try { await axios.delete(`http://localhost:8080/deliverable/delete/${deliverableId}`); loadData(); - if (response.status === 200) { - alert('Deliverable deleted successfully'); - loadData(); - } else { - alert('Failed to delete deliverable'); - } + alert('Deliverable deleted successfully'); } catch (error) { console.error("Error deleting deliverable:", error); alert("Failed to delete deliverable!"); diff --git a/front-end/src/Pages/Downloads.jsx b/front-end/src/Pages/Downloads.jsx index 45e366b..bb0b7ae 100644 --- a/front-end/src/Pages/Downloads.jsx +++ b/front-end/src/Pages/Downloads.jsx @@ -197,7 +197,7 @@ const FileUploadDownload = () => {