From ca2d37afe8076fa14eac1fb99d1e1b41ebb4eef6 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 22 Jun 2023 02:04:10 -0700 Subject: [PATCH] Fix server unavailable message Booleans are hard --- components/Layout/index.tsx | 2 +- pages/_app.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Layout/index.tsx b/components/Layout/index.tsx index 6aafdde1..20ffa423 100644 --- a/components/Layout/index.tsx +++ b/components/Layout/index.tsx @@ -77,7 +77,7 @@ const Layout = ({ children }: PropsWithChildren) => { return ( <> - {appState.version && ServerAvailable} + {appState.version ? ServerAvailable() : ''}
{children}
) diff --git a/pages/_app.tsx b/pages/_app.tsx index 1486ab98..d213c926 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -130,7 +130,7 @@ function MyApp({ Component, pageProps }: AppProps) { - {appState.version ? ( + {!appState.version ? ( serverUnavailable() ) : (