From ca26756d0a5de7ce02c94db727988af0a6c156c1 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 25 Apr 2019 11:26:44 -0700 Subject: [PATCH] After signup, redirect to communities page. --- ui/src/components/login.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx index bab7b06..f86faa2 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'); } } } + }