forked from MapComplete/MapComplete
		
	Typing: Fix some typing errors
This commit is contained in:
		
							parent
							
								
									5d00f3cc6a
								
							
						
					
					
						commit
						7d5aa725fb
					
				
					 5 changed files with 37 additions and 80 deletions
				
			
		|  | @ -9,7 +9,7 @@ | |||
|   import { Unit } from "../../Models/Unit" | ||||
|   import UnitInput from "../Popup/UnitInput.svelte" | ||||
| 
 | ||||
|   export let type: ValidatorType | ||||
|   export let type: ValidatorType  | ||||
|   export let feedback: UIEventSource<Translation> | undefined = undefined | ||||
|   export let getCountry: () => string | undefined | ||||
|   export let placeholder: string | Translation | undefined | ||||
|  | @ -63,6 +63,7 @@ | |||
|     } | ||||
| 
 | ||||
|     if (unit && isNaN(Number(v))) { | ||||
|       console.debug("Not a number, but a unit is required") | ||||
|       value.setData(undefined) | ||||
|       return | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue