Skip to content

Commit

Permalink
Fixed create request alert
Browse files Browse the repository at this point in the history
  • Loading branch information
P3TROOS committed Oct 21, 2023
1 parent b5b2cfc commit 4255d22
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ const useRequestMaker = () => {
body: JSON.stringify(requestBody)
}).then(() => {
console.log("New request added");
window.alert("Successfully created " + requestBody + "request.");
console.log(requestBody);
window.alert("Successfully created " + requestBody.support_type + " request.");
})
.catch((error) => {
window.alert("Couldn't created " + requestBody + "request. Possible duplicate request.");
window.alert("Couldn't create " + requestBody.support_type + " request. Possible duplicate request.");
})
};

Expand Down

0 comments on commit 4255d22

Please sign in to comment.