fix fetching SavingsAccountTemplate when groupId present (#2381)

This commit is contained in:
Abhinav R Cillanki
2025-04-06 09:11:57 -06:00
committed by GitHub
parent d5879f4858
commit c8c7a50d50
@@ -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)