mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Fix banned user redirect
This commit is contained in:
parent
497bb6f357
commit
31c2f98afc
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue