change: use ternary instead of short circuit

This commit is contained in:
frost768 2023-03-31 21:07:58 +03:00
parent efcb12f95a
commit 92ef687ddc

View file

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