diff --git a/frontends/web/src/new_front/pages/Submissions/SubmitPrediction.tsx b/frontends/web/src/new_front/pages/Submissions/SubmitPrediction.tsx index 135cee04c..b75c203d9 100644 --- a/frontends/web/src/new_front/pages/Submissions/SubmitPrediction.tsx +++ b/frontends/web/src/new_front/pages/Submissions/SubmitPrediction.tsx @@ -44,7 +44,7 @@ const SubmitPrediction = () => { const formData = new FormData(); const predictions = modelData.file[0]; const predictionsFormat = predictions.name.split(".").pop().toLowerCase(); - if (predictionsFormat !== "json" && predictionsFormat !== "jsonl") { + if (predictionsFormat !== "json" || predictionsFormat !== "jsonl") { Swal.fire({ title: "Error!", text: "Please, upload a json file.", @@ -81,7 +81,7 @@ const SubmitPrediction = () => { if (error.response.status === 400) { Swal.fire({ title: "Error!", - text: "Please, upload a valid file.", + text: "Although uploaded, the submission failed to evaluate.", icon: "error", confirmButtonText: "Ok", }).then(() => {