Use else instead of two returns
							parent
							
								
									eca82bdb42
								
							
						
					
					
						commit
						c4001b5c5d
					
				| 
						 | 
				
			
			@ -738,13 +738,11 @@ module.exports = React.createClass({
 | 
			
		|||
        if (teamToken) {
 | 
			
		||||
            this._teamToken = teamToken;
 | 
			
		||||
            dis.dispatch({action: 'view_home_page'});
 | 
			
		||||
            return;
 | 
			
		||||
        } else if (this._is_registered) {
 | 
			
		||||
            dis.dispatch({action: 'view_user_settings'});
 | 
			
		||||
            return;
 | 
			
		||||
        } else {
 | 
			
		||||
            dis.dispatch({action: 'view_room_directory'});
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        dis.dispatch({action: 'view_room_directory'});
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue