Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
fix: remove undefined variable in staticman.js (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentTam authored Jun 7, 2021
1 parent d2603d7 commit d4da003
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions assets/js/staticman.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
if (status >= 200 && status < 400) {
formSubmitted();
} else {
formError(err);
formError();
}
}
};
Expand All @@ -57,8 +57,7 @@
form.classList.remove('loading');
}

function formError(err) {
console.log(err);
function formError() {
showAlert('failed');
form.classList.remove('loading');
}
Expand Down

0 comments on commit d4da003

Please sign in to comment.