mirror of
				https://github.com/nerzhul/ocsms.git
				synced 2025-10-28 17:07:15 +00:00 
			
		
		
		
	Avoid console errors if the input isn't a strong. (#261)
This commit is contained in:
		
							parent
							
								
									6505571221
								
							
						
					
					
						commit
						afea0734e9
					
				| @ -63,6 +63,10 @@ var ContactRenderer = { | |||||||
| 		} | 		} | ||||||
| 	}, | 	}, | ||||||
| 	generateFirstCharacter: function (input) { | 	generateFirstCharacter: function (input) { | ||||||
|  | 		if (typeof input !== 'string') { | ||||||
|  | 			return '?'; | ||||||
|  | 		} | ||||||
|  | 
 | ||||||
| 		if (input.charAt(0) === '+') { | 		if (input.charAt(0) === '+') { | ||||||
| 			return '#'; | 			return '#'; | ||||||
| 		} | 		} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user