Skip to content

Commit

Permalink
Added alert for request creation
Browse files Browse the repository at this point in the history
  • Loading branch information
P3TROOS committed Oct 21, 2023
1 parent 8480edc commit 9c9a1d1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ const useRequestMaker = () => {
body: JSON.stringify(requestBody)
}).then(() => {
console.log("New request added");
window.alert("Successfully created " + requestBody + "request.");
})
.catch((error) => {
window.alert("Error: Unable to create duplicate requests.");
window.alert("Couldn't created " + requestBody + "request. Possible duplicate request.");
})
};

Expand Down

0 comments on commit 9c9a1d1

Please sign in to comment.