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 (
|
||||
<>
|
||||
{appState.version && ServerAvailable}
|
||||
{appState.version ? ServerAvailable() : ''}
|
||||
<main>{children}</main>
|
||||
</>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ function MyApp({ Component, pageProps }: AppProps) {
|
|||
<ToastProvider swipeDirection="right">
|
||||
<TooltipProvider>
|
||||
<Layout>
|
||||
{appState.version ? (
|
||||
{!appState.version ? (
|
||||
serverUnavailable()
|
||||
) : (
|
||||
<Component {...pageProps} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue