refactor(app conditional cleanup): remove unnecessary else statement

pull/8/head
Alexander Zoitos 4 years ago
parent f9b174c311
commit e61d9a767f

@ -8,13 +8,12 @@ class CoreApp extends App {
const { Component, pageProps, router } = this.props;
if (router.asPath === '/login') {
return <Component {...pageProps} />;
} else {
return (
<Layout>
<Component {...pageProps} />
</Layout>
);
}
return (
<Layout>
<Component {...pageProps} />
</Layout>
);
}
}

Loading…
Cancel
Save