Browse Source

change: use ternary instead of short circuit

pull/231/head
frost768 3 years ago
parent
commit
92ef687ddc
  1. 4
      src/setup/App.tsx

4
src/setup/App.tsx

@ -40,7 +40,7 @@ function App() { @@ -40,7 +40,7 @@ function App() {
/>
{/* other */}
{process.env.NODE_ENV === "development" && (
{process.env.NODE_ENV === "development" ? (
<>
<Route
exact
@ -78,7 +78,7 @@ function App() { @@ -78,7 +78,7 @@ function App() {
)}
/>
</>
)}
) : null}
<Route path="*" component={NotFoundPage} />
</Switch>
</Layout>

Loading…
Cancel
Save