Skip to content

Commit

Permalink
Merge pull request #20 from TuringCup/feature_backend
Browse files Browse the repository at this point in the history
upload done
  • Loading branch information
deltaLRD authored Oct 15, 2023
2 parents 08322bf + 370a209 commit 634a86e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/app/user/upload/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ function upload_file(input: HTMLInputElement, setUploadState: (ok:boolean, msg:
method: "POST",
body: form
}).then(e => e.json())
.then(e => e.response)
.then(e => e.errorCode == 200 ? setUploadState(true, e.errorMsg) : setUploadState(false, e.errorMsg))
.catch(e => setUploadState(false, e.toString()))
}
Expand Down

0 comments on commit 634a86e

Please sign in to comment.