From 1cf2a94d8e16afdfc247085205b92eca6c6f9be6 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 28 Feb 2024 02:13:19 +0100 Subject: [PATCH] Fix typing error --- src/UI/InputElement/Validator.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UI/InputElement/Validator.ts b/src/UI/InputElement/Validator.ts index 7aeee9654e..1bec3faa8e 100644 --- a/src/UI/InputElement/Validator.ts +++ b/src/UI/InputElement/Validator.ts @@ -57,8 +57,8 @@ export abstract class Validator { * * Returns 'undefined' if the element is valid */ - public getFeedback(s: string, _?: () => string): Translation | undefined { - if (this.isValid(s)) { + public getFeedback(s: string, getCountry?: () => string): Translation | undefined { + if (this.isValid(s, getCountry)) { return undefined } const tr = Translations.t.validation[this.name] @@ -71,7 +71,7 @@ export abstract class Validator { return Translations.t.validation[this.name].description } - public isValid(_: string): boolean { + public isValid(_: string, getCountry?: () => string): boolean { return true }