From b0cf464004142dce602fa882c8d638605be7e479 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Fri, 16 Apr 2021 18:01:38 +0800
Subject: ...

---
 FrontEnd/src/app/App.tsx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'FrontEnd/src/app/App.tsx')

diff --git a/FrontEnd/src/app/App.tsx b/FrontEnd/src/app/App.tsx
index 39ef78f2..6431ebbb 100644
--- a/FrontEnd/src/app/App.tsx
+++ b/FrontEnd/src/app/App.tsx
@@ -45,9 +45,11 @@ const App: React.FC = () => {
             <Route exact path="/home">
               <Home />
             </Route>
-            <Route exact path="/center">
-              <Center />
-            </Route>
+            {user != null ? (
+              <Route exact path="/center">
+                <Center />
+              </Route>
+            ) : null}
             <Route exact path="/login">
               <Login />
             </Route>
-- 
cgit v1.2.3

