Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
remg1997 committed Jul 21, 2023
1 parent 84d2b13 commit 7895e9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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(() => {
Expand Down

0 comments on commit 7895e9d

Please sign in to comment.