This commit is contained in:
Kenneth Jannette
2024-02-25 12:24:00 -06:00
parent 285637f9ff
commit 37d4284829
4 changed files with 4 additions and 9 deletions

View File

@@ -88,10 +88,8 @@ const UploadModal = (props) => {
}
async function uploadFile(file) {
console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~radioValue", radioValue);
try {
if (radioValue === "complaint") {
console.log("hit radio if");
const response = await fetch(`${apiUrl}/v1/gen-disc-request`, {
method: "POST",
body: file,