forked from MapComplete/MapComplete
		
	Fix typing error
This commit is contained in:
		
							parent
							
								
									9df228ac5d
								
							
						
					
					
						commit
						1cf2a94d8e
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -57,8 +57,8 @@ export abstract class Validator { | ||||||
|      * |      * | ||||||
|      * Returns 'undefined' if the element is valid |      * Returns 'undefined' if the element is valid | ||||||
|      */ |      */ | ||||||
|     public getFeedback(s: string, _?: () => string): Translation | undefined { |     public getFeedback(s: string, getCountry?: () => string): Translation | undefined { | ||||||
|         if (this.isValid(s)) { |         if (this.isValid(s, getCountry)) { | ||||||
|             return undefined |             return undefined | ||||||
|         } |         } | ||||||
|         const tr = Translations.t.validation[this.name] |         const tr = Translations.t.validation[this.name] | ||||||
|  | @ -71,7 +71,7 @@ export abstract class Validator { | ||||||
|         return Translations.t.validation[this.name].description |         return Translations.t.validation[this.name].description | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public isValid(_: string): boolean { |     public isValid(_: string, getCountry?: () => string): boolean { | ||||||
|         return true |         return true | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue