diff --git a/src/app/products/fixed-deposit-products/fixed-deposit-product-stepper/fixed-deposit-product-currency-step/fixed-deposit-product-currency-step.component.ts b/src/app/products/fixed-deposit-products/fixed-deposit-product-stepper/fixed-deposit-product-currency-step/fixed-deposit-product-currency-step.component.ts index c8ff0a435..22e41f549 100644 --- a/src/app/products/fixed-deposit-products/fixed-deposit-product-stepper/fixed-deposit-product-currency-step/fixed-deposit-product-currency-step.component.ts +++ b/src/app/products/fixed-deposit-products/fixed-deposit-product-stepper/fixed-deposit-product-currency-step/fixed-deposit-product-currency-step.component.ts @@ -42,7 +42,9 @@ export class FixedDepositProductCurrencyStepComponent implements OnInit { } ngOnInit() { - this.currencyData = this.fixedDepositProductsTemplate.currencyOptions; + this.currencyData = this.fixedDepositProductsTemplate.currencyOptions.filter( + (c: { code: string }) => c.code === 'INR' + ); this.fixedDepositProductCurrencyForm.patchValue({ currencyCode: this.fixedDepositProductsTemplate.currency?.code || this.currencyData?.[0]?.code || '', diff --git a/src/app/products/recurring-deposit-products/recurring-deposit-product-stepper/recurring-deposit-product-currency-step/recurring-deposit-product-currency-step.component.ts b/src/app/products/recurring-deposit-products/recurring-deposit-product-stepper/recurring-deposit-product-currency-step/recurring-deposit-product-currency-step.component.ts index efc71693a..32c386213 100644 --- a/src/app/products/recurring-deposit-products/recurring-deposit-product-stepper/recurring-deposit-product-currency-step/recurring-deposit-product-currency-step.component.ts +++ b/src/app/products/recurring-deposit-products/recurring-deposit-product-stepper/recurring-deposit-product-currency-step/recurring-deposit-product-currency-step.component.ts @@ -42,7 +42,9 @@ export class RecurringDepositProductCurrencyStepComponent implements OnInit { } ngOnInit() { - this.currencyData = this.recurringDepositProductsTemplate.currencyOptions; + this.currencyData = this.recurringDepositProductsTemplate.currencyOptions.filter( + (c: { code: string }) => c.code === 'INR' + ); this.recurringDepositProductCurrencyForm.patchValue({ currencyCode: this.recurringDepositProductsTemplate.currency?.code || this.currencyData?.[0]?.code || '', diff --git a/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.ts b/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.ts index 63ae1b3db..375079ae3 100644 --- a/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.ts +++ b/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.ts @@ -44,7 +44,7 @@ export class SavingProductCurrencyStepComponent implements OnInit { } ngOnInit() { - this.currencyData = this.savingProductsTemplate.currencyOptions; + this.currencyData = this.savingProductsTemplate.currencyOptions.filter((c: { code: string }) => c.code === 'INR'); this.savingProductCurrencyForm.patchValue({ currencyCode: this.savingProductsTemplate.currency?.code || this.currencyData?.[0]?.code || '', diff --git a/src/app/products/share-products/share-product-stepper/share-product-currency-step/share-product-currency-step.component.ts b/src/app/products/share-products/share-product-stepper/share-product-currency-step/share-product-currency-step.component.ts index 4e6602ef2..a20725f5b 100644 --- a/src/app/products/share-products/share-product-stepper/share-product-currency-step/share-product-currency-step.component.ts +++ b/src/app/products/share-products/share-product-stepper/share-product-currency-step/share-product-currency-step.component.ts @@ -36,7 +36,7 @@ export class ShareProductCurrencyStepComponent implements OnInit { } ngOnInit() { - this.currencyData = this.shareProductsTemplate.currencyOptions; + this.currencyData = this.shareProductsTemplate.currencyOptions.filter((c: { code: string }) => c.code === 'INR'); this.shareProductCurrencyForm.patchValue({ currencyCode: this.shareProductsTemplate.currency?.code || this.currencyData[0].code,