mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Fix bug
This commit is contained in:
parent
7b5eb7117d
commit
0a5fedf38b
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,11 @@ class ValidatorCore implements Validator {
|
|||
value: any;
|
||||
error: string;
|
||||
|
||||
constructor() {
|
||||
this.value = null;
|
||||
this.error = null;
|
||||
}
|
||||
|
||||
required() {
|
||||
if (this.error === null && this.value === null) {
|
||||
this.error = 'required';
|
||||
|
|
Loading…
Add table
Reference in a new issue