Fix banned user redirect

This commit is contained in:
Ray Schamp 2016-05-11 19:53:59 -04:00
parent 497bb6f357
commit 31c2f98afc

View file

@ -37,7 +37,7 @@ var Actions = {
if (typeof body !== 'undefined') { if (typeof body !== 'undefined') {
if (body.banned) { if (body.banned) {
return window.location = url; return window.location = body.redirectUrl;
} else { } else {
dispatch(Actions.getToken()); dispatch(Actions.getToken());
dispatch(Actions.setSession(body)); dispatch(Actions.setSession(body));