Skip to content
Snippets Groups Projects
Commit 3b5605df authored by Romain CREY's avatar Romain CREY
Browse files

fix: modal visibility

parent a1b24f1f
No related branches found
No related tags found
1 merge request!15Merge Dev to Master
......@@ -28,8 +28,8 @@ export const ViewContainer = () => {
<Layout>
<AppContextProvider>
<Navbar />
<WelcomeModalContainer />
<Main>
<WelcomeModalContainer />
<Content className="app-content">
<ScrollToTop>
<Switch>
......
......@@ -41,7 +41,9 @@ const WelcomeModalContainer: React.FC<WelcomeModalContainerProps> = ({
.query(client.find(USERPROFILE_DOCTYPE).limitBy(1))
.then(async ({ data }) => {
const welcomeModalState = data[0].haveSeenWelcomeModal
setModalOpen(!welcomeModalState)
if (!welcomeModalState) {
setModalOpen(true)
}
})
}
getWelcomeModalState()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment