feat(products): restrict currency dropdown to INR only for all product types

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jaanu423
2026-07-09 16:34:13 +05:30
co-authored by Claude Sonnet 4.6
parent d72155a74a
commit b9856a1c93
4 changed files with 8 additions and 4 deletions
@@ -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 || '',
@@ -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 || '',
@@ -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 || '',
@@ -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,