Add behavior pages (fix #119) #130

Merged
cami merged 6 commits from feature/behaviourpages into main 2021-07-11 23:29:58 +00:00
Showing only changes of commit 8bc7076e86 - Show all commits

View file

@ -50,8 +50,6 @@ export default function Umfrage() {
setIsEducationOk(true);
setIsSkillsOk(true);
setIsSurveyValid(true);
console.log("before valid");
console.log(isSurveyValid);
if (!Number(age)) {
setAgeErrorMessage("Das Alter muss als Zahl angegeben werden.");
@ -80,8 +78,6 @@ export default function Umfrage() {
setIsSkillsOk(false);
}
console.log("after valid");
console.log(isSurveyValid);
if (isSurveyValid === true) {
authFetch("/api/protected/umfrage", {
method: "post",