From 1ed577db123af6ec7fe604f84b43c47bd29e432f Mon Sep 17 00:00:00 2001
From: meskio <meskio@sindominio.net>
Date: Sun, 11 Oct 2020 14:15:13 +0200
Subject: [PATCH] Render the SignIn if token is expired

---
 src/App.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/App.js b/src/App.js
index 6c04689..a436f4b 100644
--- a/src/App.js
+++ b/src/App.js
@@ -160,9 +160,11 @@ class App extends React.Component {
   }
 
   render() {
-    let component = <Panel onLogout={this.logout} />;
+    let component;
     if (!this.isLoged()) {
       component = <SignIn onLogin={this.login} />;
+    } else {
+      component = <Panel onLogout={this.logout} />;
     }
 
     return (
-- 
GitLab