mirror of https://github.com/docker/docs.git
				
				
				
			Verify response exists before checking status code
This commit is contained in:
		
							parent
							
								
									fcd0244180
								
							
						
					
					
						commit
						5f32883e91
					
				|  | @ -169,7 +169,7 @@ module.exports = { | |||
|         subscribe | ||||
|       } | ||||
|     }, (err, response, body) => { | ||||
|       if (response.statusCode === 204) { | ||||
|       if (response && response.statusCode === 204) { | ||||
|         accountServerActions.signedup({username, verified: false}); | ||||
|         accountServerActions.prompted({prompted: true}); | ||||
|         localStorage.setItem('auth.username', username); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue