Fix server unavailable message

Booleans are hard
This commit is contained in:
Justin Edmund 2023-06-22 02:04:10 -07:00
parent 686729ff9c
commit ca2d37afe8
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ const Layout = ({ children }: PropsWithChildren<Props>) => {
return (
<>
{appState.version && ServerAvailable}
{appState.version ? ServerAvailable() : ''}
<main>{children}</main>
</>
)

View file

@ -130,7 +130,7 @@ function MyApp({ Component, pageProps }: AppProps) {
<ToastProvider swipeDirection="right">
<TooltipProvider>
<Layout>
{appState.version ? (
{!appState.version ? (
serverUnavailable()
) : (
<Component {...pageProps} />