From c8c7a50d50c4823239670bd872403985791f0e38 Mon Sep 17 00:00:00 2001 From: Abhinav R Cillanki <95158195+JebronLames32@users.noreply.github.com> Date: Sun, 6 Apr 2025 20:41:57 +0530 Subject: [PATCH] fix fetching SavingsAccountTemplate when groupId present (#2381) --- .../savings-account-details-step.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.ts b/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.ts index d5fbc51ea..881137dd2 100644 --- a/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.ts +++ b/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.ts @@ -93,7 +93,7 @@ export class SavingsAccountDetailsStepComponent implements OnInit { * Fetches savings account product template on productId value changes */ buildDependencies() { - const entityId = this.savingsAccountTemplate.clientId || this.savingsAccountTemplate.groupId; + const entityId = this.savingsAccountTemplate.groupId || this.savingsAccountTemplate.clientId; this.savingsAccountDetailsForm.get('productId').valueChanges.subscribe((productId: string) => { this.savingsService .getSavingsAccountTemplate(entityId, productId, this.savingsAccountTemplate.groupId ? true : false)