Skip to content

Commit

Permalink
updated no file error label
Browse files Browse the repository at this point in the history
  • Loading branch information
lrdossan committed Aug 11, 2023
1 parent c974e4d commit 976f8bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion caimira/apps/calculator/static/js/co2_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ function uploadFile(endpoint) {
clearFittingResultComponent();
const files = $("#file_upload")[0].files;
if (files.length === 0) {
$("#upload-error").show();
$("#upload-error")
.text('Please choose a file.')
.show();
return;
}
const file = files[0];
Expand Down

0 comments on commit 976f8bb

Please sign in to comment.