Skip to content
Snippets Groups Projects
Commit 6ace879e authored by jojohoch's avatar jojohoch
Browse files

[player] Fix typos

parent 3640104e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment