Fix lint errors

Manually fix all lint errors.
Some errors could not be fixed, a TODO comment was added.

To fix errors caused by `react-hooks/exhaustive-deps`, missing
dependencies were added to the dependencies array of some `useEffect`
calls.
We need to make sure that all `useEffect` call work as intended before
merging

Gitlab: #29
Change-Id: I939a99b0be53795ecc28d25b5067f037403f5e08
diff --git a/client/src/AuthManager.js b/client/src/AuthManager.js
index 60c903b..ea55c3a 100644
--- a/client/src/AuthManager.js
+++ b/client/src/AuthManager.js
@@ -1,3 +1,6 @@
+/* eslint-disable no-undef */
+// TODO: This hides eslint errors for this file. This should be removed once this file is cleaned up.
+
 /*
  *  Copyright (c) 2017-2021 Savoir-faire Linux Inc.
  *
@@ -118,8 +121,8 @@
     if (response.ok) {
       console.log('Success, going home');
       //navigate('/')
-    } else {
     }
+
     this.authenticating = false;
     this.state.setupComplete = true;
     if (this.onAuthChanged) this.onAuthChanged(this.state);