mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 10:05:46 +01:00
Fix bug
This commit is contained in:
parent
f3d5c07ada
commit
b1195e5bfd
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…
Reference in a new issue