Use typeof
This commit is contained in:
		
							parent
							
								
									ffb345ccb5
								
							
						
					
					
						commit
						b28dd4be52
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -25,7 +25,7 @@ export default (params: any) => new Promise(async (res, rej) => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const set = {} as any;
 | 
						const set = {} as any;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (ps.disableRegistration === true || ps.disableRegistration === false) {
 | 
						if (typeof ps.disableRegistration === 'boolean') {
 | 
				
			||||||
		set.disableRegistration = ps.disableRegistration;
 | 
							set.disableRegistration = ps.disableRegistration;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue