From 6ace879e40dae872cabcb9bc348989b5856a959e Mon Sep 17 00:00:00 2001
From: jojohoch <joachim.hoch@iqb.hu-berlin.de>
Date: Wed, 28 Jul 2021 17:19:45 +0200
Subject: [PATCH] [player] Fix typos

---
 .../src/app/components/validation-message.component.ts      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/projects/player/src/app/components/validation-message.component.ts b/projects/player/src/app/components/validation-message.component.ts
index 8bf53ae60..a54bd954d 100644
--- a/projects/player/src/app/components/validation-message.component.ts
+++ b/projects/player/src/app/components/validation-message.component.ts
@@ -52,17 +52,17 @@ export class ValidationMessageComponent implements OnInit {
       validators.push(Validators.required);
     }
     if (this.elementModel.min) {
-      if (this.elementModel.type === 'number_field') {
+      if (this.elementModel.type === 'number-field') {
         validators.push(Validators.min(<number> this.elementModel.min));
       } else {
         validators.push(Validators.minLength(<number> this.elementModel.min));
       }
     }
     if (this.elementModel.max) {
-      if (this.elementModel.type === 'number_field') {
+      if (this.elementModel.type === 'number-field') {
         validators.push(Validators.max(<number> this.elementModel.max));
       } else {
-        validators.push(Validators.maxLength(<number> this.elementModel.maxLength));
+        validators.push(Validators.maxLength(<number> this.elementModel.max));
       }
     }
     return validators;
-- 
GitLab