diff --git a/components/Layout/index.tsx b/components/Layout/index.tsx index d88b3a18..20ffa423 100644 --- a/components/Layout/index.tsx +++ b/components/Layout/index.tsx @@ -77,8 +77,7 @@ const Layout = ({ children }: PropsWithChildren) => { return ( <> - {ServerAvailable()} - {/* {appState.version ? ServerAvailable() : ''} */} + {appState.version ? ServerAvailable() : ''}
{children}
) diff --git a/pages/_app.tsx b/pages/_app.tsx index 9dcd7e2f..d213c926 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -35,11 +35,6 @@ function MyApp({ Component, pageProps }: AppProps) { useEffect(() => () => unsubscribe(), []) - useEffect(() => { - console.log('granblue.team version') - console.log(appState.version) - }) - const accountCookie = getCookie('account') const userCookie = getCookie('user') @@ -135,11 +130,11 @@ function MyApp({ Component, pageProps }: AppProps) { - - {/* {!appState.version ? ( + {!appState.version ? ( serverUnavailable() ) : ( - )} */} + + )}