From: Dessalines Date: Thu, 25 Apr 2019 18:26:44 +0000 (-0700) Subject: After signup, redirect to communities page. X-Git-Url: http://these/git/ui/assets/static/gitweb.css?a=commitdiff_plain;h=2cad62b5e391528a688025ce1c0f334c46710e00;p=lemmy.git After signup, redirect to communities page. --- diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx index bab7b06f..f86faa2e 100644 --- a/ui/src/components/login.tsx +++ b/ui/src/components/login.tsx @@ -188,13 +188,20 @@ export class Login extends Component { this.setState(this.state); return; } else { - if (op == UserOperation.Register || op == UserOperation.Login) { + if (op == UserOperation.Login) { this.state.loginLoading = false; this.state.registerLoading = false; let res: LoginResponse = msg; UserService.Instance.login(res); this.props.history.push('/'); + } else if (op == UserOperation.Register) { + this.state.loginLoading = false; + this.state.registerLoading = false; + let res: LoginResponse = msg; + UserService.Instance.login(res); + this.props.history.push('/communities'); } } } + }