add max validator in spend allowance page
All checks were successful
Backend Build and Test / build (push) Successful in 2m43s

This commit is contained in:
Huffle 2025-05-27 18:38:35 +02:00
parent 93e8a79bcc
commit 85f796814c

View File

@ -30,6 +30,10 @@ export class SpendllowancePage {
amount: ['', Validators.required],
description: ['', Validators.required]
});
this.allowanceService.getAllowanceById(this.goalId, this.userId).subscribe(allowance => {
this.form.controls['amount'].addValidators([Validators.max(allowance.progress)]);
});
}
changeAllowance() {