Redirect emails list to new email for new users

[MAILPOET-2383]
This commit is contained in:
Ján Mikláš
2019-12-11 14:51:24 +01:00
committed by Jack Kitterhing
parent e9f77bc237
commit 2abfae5eab

View File

@@ -104,7 +104,7 @@ const App = () => (
<HashRouter>
<Notices />
<Switch>
<Route exact path="/" render={() => <Redirect to="/standard" />} />
<Route exact path="/" render={() => <Redirect to={window.mailpoet_newsletters_count === 0 ? '/new' : '/standard'} />} />
{routes.map((route) => (
<Route
key={route.path}