Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit fc948b2

Browse files
committed
Account for /me/settings with user who has no username
1 parent 077a641 commit fc948b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/routes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { withCurrentUser } from 'src/components/withCurrentUser';
3232
import Maintenance from 'src/components/maintenance';
3333
import type { GetUserType } from 'shared/graphql/queries/user/getUser';
3434
import RedirectOldThreadRoute from './views/thread/redirect-old-route';
35+
import NewUserOnboarding from './views/newUserOnboarding';
3536

3637
/* prettier-ignore */
3738
const Explore = Loadable({
@@ -267,6 +268,8 @@ class Routes extends React.Component<Props> {
267268
<Redirect
268269
to={`/users/${currentUser.username}/settings`}
269270
/>
271+
) : currentUser && !currentUser.username ? (
272+
<NewUserOnboarding />
270273
) : isLoadingCurrentUser ? null : (
271274
<Login redirectPath={`${CLIENT_URL}/me/settings`} />
272275
)

0 commit comments

Comments
 (0)