Skip to content

Commit

Permalink
fix: Create Guarantor form issues (#2284)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
steinwinde authored Feb 27, 2025
1 parent daa2c1a commit 255640e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 255640e

Please sign in to comment.