From 1feffe524b9536faea8d3e8047a1b7d9c6f8e50e Mon Sep 17 00:00:00 2001
From: "guilhem.carron" <gcarron@grandlyon.com>
Date: Fri, 17 Sep 2021 15:02:29 +0200
Subject: [PATCH] Add tutorial welcome conditionned by cgu

---
 src/components/App.tsx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/components/App.tsx b/src/components/App.tsx
index 35bc76ef1..8fbbb027f 100644
--- a/src/components/App.tsx
+++ b/src/components/App.tsx
@@ -28,8 +28,12 @@ export const App = () => {
           splashComponent={SplashScreen}
           splashErrorComponent={SplashScreenError}
         >
-          <TutorialWelcome open={!tutorial.isWelcomeSeen} />
-          {isLastTermAccepted && <Navbar />}
+          {isLastTermAccepted && (
+            <>
+              <TutorialWelcome open={!tutorial.isWelcomeSeen} />
+              <Navbar />
+            </>
+          )}
           <Main>
             <Content className="app-content">
               <Routes isLastTermAccepted={isLastTermAccepted} />
-- 
GitLab