mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
Use else instead of two returns
This commit is contained in:
@@ -738,13 +738,11 @@ module.exports = React.createClass({
|
|||||||
if (teamToken) {
|
if (teamToken) {
|
||||||
this._teamToken = teamToken;
|
this._teamToken = teamToken;
|
||||||
dis.dispatch({action: 'view_home_page'});
|
dis.dispatch({action: 'view_home_page'});
|
||||||
return;
|
|
||||||
} else if (this._is_registered) {
|
} else if (this._is_registered) {
|
||||||
dis.dispatch({action: 'view_user_settings'});
|
dis.dispatch({action: 'view_user_settings'});
|
||||||
return;
|
} else {
|
||||||
|
dis.dispatch({action: 'view_room_directory'});
|
||||||
}
|
}
|
||||||
|
|
||||||
dis.dispatch({action: 'view_room_directory'});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user