diff --git a/frontend/infosafe_frontend/src/components/Subsystems/useRequestMaker.js b/frontend/infosafe_frontend/src/components/Subsystems/useRequestMaker.js index 5b07b408..870b5a57 100644 --- a/frontend/infosafe_frontend/src/components/Subsystems/useRequestMaker.js +++ b/frontend/infosafe_frontend/src/components/Subsystems/useRequestMaker.js @@ -75,10 +75,10 @@ const useRequestMaker = () => { body: JSON.stringify(requestBody) }).then(() => { console.log("New request added"); - window.alert("Successfully created " + requestBody + "request."); + window.alert("Successfully created " + requestBody.support_type + " request."); }) .catch((error) => { - window.alert("Couldn't created " + requestBody + "request. Possible duplicate request."); + window.alert("Couldn't created " + requestBody.support_type + " request. Possible duplicate request."); }) };