Fix server unavailable message
Booleans are hard
This commit is contained in:
parent
686729ff9c
commit
ca2d37afe8
2 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ const Layout = ({ children }: PropsWithChildren<Props>) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{appState.version && ServerAvailable}
|
{appState.version ? ServerAvailable() : ''}
|
||||||
<main>{children}</main>
|
<main>{children}</main>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ function MyApp({ Component, pageProps }: AppProps) {
|
||||||
<ToastProvider swipeDirection="right">
|
<ToastProvider swipeDirection="right">
|
||||||
<TooltipProvider>
|
<TooltipProvider>
|
||||||
<Layout>
|
<Layout>
|
||||||
{appState.version ? (
|
{!appState.version ? (
|
||||||
serverUnavailable()
|
serverUnavailable()
|
||||||
) : (
|
) : (
|
||||||
<Component {...pageProps} />
|
<Component {...pageProps} />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue