fix: Loan Product default value for Days In Year Custom strategy

This commit is contained in:
Jose Alberto Hernandez
2025-03-26 09:07:51 -05:00
parent 7a70f14cd0
commit 1534764292
@@ -326,7 +326,7 @@ export class LoanProductSettingsStepComponent implements OnInit {
if (this.useDaysInYearCustomStrategy) {
const daysInYearCustomStrategy: string = this.loanProductsTemplate.daysInYearCustomStrategy?.id
? this.loanProductsTemplate.daysInYearCustomStrategy.id
: '';
: this.daysInYearCustomStrategyOptions[0].id;
this.loanProductSettingsForm.addControl(
'daysInYearCustomStrategy',
new UntypedFormControl(daysInYearCustomStrategy, Validators.required)
@@ -734,7 +734,7 @@ export class LoanProductSettingsStepComponent implements OnInit {
if (this.useDaysInYearCustomStrategy) {
const daysInYearCustomStrategy: string = this.loanProductsTemplate.daysInYearCustomStrategy?.id
? this.loanProductsTemplate.daysInYearCustomStrategy.id
: '';
: this.daysInYearCustomStrategyOptions[0].id;
this.loanProductSettingsForm.addControl(
'daysInYearCustomStrategy',
new UntypedFormControl(daysInYearCustomStrategy, Validators.required)