fix: Create Guarantor form issues (#2284)

Client Detail must only be shown when Name got selected. Prevent any Javascript errors. Enable the user
to enter a date of birth before 2000.

Fixes: WEB-30
This commit is contained in:
Felix van Hove
2025-02-27 17:09:02 -06:00
committed by GitHub
parent daa2c1abb2
commit 255640ec5f
2 changed files with 3 additions and 3 deletions
@@ -37,7 +37,7 @@
</mat-select>
</mat-form-field>
<ng-container *ngIf="accountOptions.length > 0">
<ng-container *ngIf="accountOptions?.length > 0">
<mat-form-field>
<mat-label>{{ 'labels.inputs.Account' | translate }}</mat-label>
<mat-select formControlName="savingsId">
@@ -137,7 +137,7 @@
</mat-card-content>
</form>
<ng-container *ngIf="!(newGuarantorForm.controls.name === undefined)">
<ng-container *ngIf="newGuarantorForm?.controls?.name?.value">
<div class="mat-table">
<div class="mat-header-row">
<div class="mat-header-cell">{{ 'labels.inputs.Client Details' | translate }}</div>
@@ -28,7 +28,7 @@ export class CreateGuarantorComponent implements OnInit, AfterViewInit {
/** Show Client Details Form */
showClientDetailsForm = false;
/** Minimum date allowed. */
minDate = new Date(2000, 0, 1);
minDate = new Date(1900, 0, 1);
/** Maximum date allowed. */
maxDate = new Date();
/** Client data. */