diff --git a/src/app/utils/field-validation/validators/common.ts b/src/app/utils/field-validation/validators/common.ts index bedfd98595..a096463c23 100644 --- a/src/app/utils/field-validation/validators/common.ts +++ b/src/app/utils/field-validation/validators/common.ts @@ -66,7 +66,7 @@ export const makeSignatureValidator: ( const { signature, answer } = response if (!signature) { return left( - `CommonValidator.makeSignatureValidator:\t answer does not have valid signature`, + `CommonValidator.makeSignatureValidator:\t answer signature is missing`, ) } const isSigned = @@ -102,8 +102,9 @@ export const makeSignatureValidatorV3 = } const { value, signature } = response.answer if (!signature) { + // TODO: (FM-1688) Remove this log after sure that validation logic works as expected. return left( - `CommonValidatorV3.makeSignatureValidator:\t answer does not have valid signature`, + `CommonValidatorV3.makeSignatureValidator:\t answer signature is missing. value: ${value}, signature: ${signature}`, ) } const isSigned = @@ -117,7 +118,8 @@ export const makeSignatureValidatorV3 = return isSigned ? right(response) - : left( - `CommonValidatorV3.makeSignatureValidator:\t answer does not have valid signature`, + : // TODO: (FM-1688) Remove this log after sure that validation logic works as expected. + left( + `CommonValidatorV3.makeSignatureValidator:\t answer does not have valid signature. value: ${value}, signature: ${signature}`, ) }