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 = () => { ...@@ -28,8 +28,8 @@ export const ViewContainer = () => {
<Layout> <Layout>
<AppContextProvider> <AppContextProvider>
<Navbar /> <Navbar />
<WelcomeModalContainer />
<Main> <Main>
<WelcomeModalContainer />
<Content className="app-content"> <Content className="app-content">
<ScrollToTop> <ScrollToTop>
<Switch> <Switch>
......
...@@ -41,7 +41,9 @@ const WelcomeModalContainer: React.FC<WelcomeModalContainerProps> = ({ ...@@ -41,7 +41,9 @@ const WelcomeModalContainer: React.FC<WelcomeModalContainerProps> = ({
.query(client.find(USERPROFILE_DOCTYPE).limitBy(1)) .query(client.find(USERPROFILE_DOCTYPE).limitBy(1))
.then(async ({ data }) => { .then(async ({ data }) => {
const welcomeModalState = data[0].haveSeenWelcomeModal const welcomeModalState = data[0].haveSeenWelcomeModal
setModalOpen(!welcomeModalState) if (!welcomeModalState) {
setModalOpen(true)
}
}) })
} }
getWelcomeModalState() 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