From 8bc7076e86ab7f84a0182dbe5996eae7a8db83e1 Mon Sep 17 00:00:00 2001 From: cami Date: Mon, 12 Jul 2021 00:14:47 +0200 Subject: [PATCH 1/6] Removed some console.log() --- frontend/src/components/pages/Umfrage.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend/src/components/pages/Umfrage.js b/frontend/src/components/pages/Umfrage.js index dcc2da7..0ad2581 100644 --- a/frontend/src/components/pages/Umfrage.js +++ b/frontend/src/components/pages/Umfrage.js @@ -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", From 169150088378b0eed981dd70ce0aab14421d8f0d Mon Sep 17 00:00:00 2001 From: cami Date: Mon, 12 Jul 2021 01:04:50 +0200 Subject: [PATCH 2/6] Renamed Behavior to behaviorNormal --- frontend/src/App.js | 4 +-- frontend/src/components/pages/Behavior.js | 36 ----------------------- 2 files changed, 2 insertions(+), 38 deletions(-) delete mode 100644 frontend/src/components/pages/Behavior.js diff --git a/frontend/src/App.js b/frontend/src/App.js index 3f5652b..45f5a10 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -12,8 +12,8 @@ import Manual from "./components/pages/Manual"; import Secret from "./components/pages/Secret"; import Umfrage from "./components/pages/Umfrage"; import PrivateRoute from "./auth/PrivateRoute"; -import Behavior from "./components/pages/Behavior"; import { useAuth } from "./auth/AuthProvider"; +import BehaviorNormal from "./components/pages/BehaviorNormal"; function App() { const [isLoggedIn] = useAuth(); @@ -31,7 +31,7 @@ function App() { - + diff --git a/frontend/src/components/pages/Behavior.js b/frontend/src/components/pages/Behavior.js deleted file mode 100644 index cf3886a..0000000 --- a/frontend/src/components/pages/Behavior.js +++ /dev/null @@ -1,36 +0,0 @@ -import React, { useEffect } from "react"; -import "../../App.css"; -import Footer from "../../Footer"; -import { Logger } from "@behametrics/logger-web"; -import { useAuth } from "../../auth/AuthProvider"; - -export default function Behavior() { - let logger = new Logger({ - //inputs: ["cursor", "wheel", "keyboard", "touch"], - inputs: ["keyboard"], - // logToConsole: true, - }); - logger.init(); - - let [isLoggedIn] = useAuth(); - - useEffect(() => { - document.title = `${isLoggedIn}`; - console.log(isLoggedIn); - if (isLoggedIn === false) { - logger.stop(); - //console.log("stopped logger"); - } else { - logger.start(); - // console.log("start logger"); - } - }); - return ( - <> -
-

Studie Verhaltensmerkmale

-
-