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:
co-authored by
Claude Sonnet 4.6
parent
d72155a74a
commit
b9856a1c93
+3
-1
@@ -42,7 +42,9 @@ export class FixedDepositProductCurrencyStepComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.currencyData = this.fixedDepositProductsTemplate.currencyOptions;
|
this.currencyData = this.fixedDepositProductsTemplate.currencyOptions.filter(
|
||||||
|
(c: { code: string }) => c.code === 'INR'
|
||||||
|
);
|
||||||
|
|
||||||
this.fixedDepositProductCurrencyForm.patchValue({
|
this.fixedDepositProductCurrencyForm.patchValue({
|
||||||
currencyCode: this.fixedDepositProductsTemplate.currency?.code || this.currencyData?.[0]?.code || '',
|
currencyCode: this.fixedDepositProductsTemplate.currency?.code || this.currencyData?.[0]?.code || '',
|
||||||
|
|||||||
+3
-1
@@ -42,7 +42,9 @@ export class RecurringDepositProductCurrencyStepComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.currencyData = this.recurringDepositProductsTemplate.currencyOptions;
|
this.currencyData = this.recurringDepositProductsTemplate.currencyOptions.filter(
|
||||||
|
(c: { code: string }) => c.code === 'INR'
|
||||||
|
);
|
||||||
|
|
||||||
this.recurringDepositProductCurrencyForm.patchValue({
|
this.recurringDepositProductCurrencyForm.patchValue({
|
||||||
currencyCode: this.recurringDepositProductsTemplate.currency?.code || this.currencyData?.[0]?.code || '',
|
currencyCode: this.recurringDepositProductsTemplate.currency?.code || this.currencyData?.[0]?.code || '',
|
||||||
|
|||||||
+1
-1
@@ -44,7 +44,7 @@ export class SavingProductCurrencyStepComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.currencyData = this.savingProductsTemplate.currencyOptions;
|
this.currencyData = this.savingProductsTemplate.currencyOptions.filter((c: { code: string }) => c.code === 'INR');
|
||||||
|
|
||||||
this.savingProductCurrencyForm.patchValue({
|
this.savingProductCurrencyForm.patchValue({
|
||||||
currencyCode: this.savingProductsTemplate.currency?.code || this.currencyData?.[0]?.code || '',
|
currencyCode: this.savingProductsTemplate.currency?.code || this.currencyData?.[0]?.code || '',
|
||||||
|
|||||||
+1
-1
@@ -36,7 +36,7 @@ export class ShareProductCurrencyStepComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.currencyData = this.shareProductsTemplate.currencyOptions;
|
this.currencyData = this.shareProductsTemplate.currencyOptions.filter((c: { code: string }) => c.code === 'INR');
|
||||||
|
|
||||||
this.shareProductCurrencyForm.patchValue({
|
this.shareProductCurrencyForm.patchValue({
|
||||||
currencyCode: this.shareProductsTemplate.currency?.code || this.currencyData[0].code,
|
currencyCode: this.shareProductsTemplate.currency?.code || this.currencyData[0].code,
|
||||||
|
|||||||
Reference in New Issue
Block a user