From 88ef2996b552a27c11e49c63f6246f754c1462c2 Mon Sep 17 00:00:00 2001 From: Pushpendra <76156941+PC-11-00@users.noreply.github.com> Date: Sun, 24 Dec 2023 12:37:26 +0530 Subject: [PATCH] fix: now able to add charge in shares account (#1944) --- .../shares-account-charges-step.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/shares/shares-account-stepper/shares-account-charges-step/shares-account-charges-step.component.ts b/src/app/shares/shares-account-stepper/shares-account-charges-step/shares-account-charges-step.component.ts index 68b30374f..3e246b168 100644 --- a/src/app/shares/shares-account-stepper/shares-account-charges-step/shares-account-charges-step.component.ts +++ b/src/app/shares/shares-account-stepper/shares-account-charges-step/shares-account-charges-step.component.ts @@ -42,7 +42,7 @@ export class SharesAccountChargesStepComponent implements OnInit, OnChanges { /** * @param {MatDialog} dialog Mat Dialog */ - constructor(public dialog: MatDialog) {} + constructor(public dialog: MatDialog) { } ngOnInit() { this.currencyCode.valueChanges.subscribe(() => { @@ -57,7 +57,8 @@ export class SharesAccountChargesStepComponent implements OnInit, OnChanges { ngOnChanges() { if (this.sharesAccountProductTemplate) { - this.chargeData = this.sharesAccountProductTemplate.charges; + this.chargeData = this.sharesAccountTemplate.chargeOptions; + this.chargesDataSource = this.sharesAccountProductTemplate.charges; } }