Skip to content

Commit 9ffcaac

Browse files
mohas22mohas22
authored andcommitted
removed unneccessary condition
1 parent 353b574 commit 9ffcaac

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/angular-sdk-components/src/lib/_components/field/decimal/decimal.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
matInput
1212
currencyMask
1313
[options]="{
14-
prefix: bReadonly$ && formatter === 'Currency' ? currencySymbol : '',
14+
prefix: currencySymbol,
1515
thousands: thousandSeparator,
1616
decimal: decimalSeparator,
1717
align: 'left',

packages/angular-sdk-components/src/lib/_components/field/decimal/decimal.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class DecimalComponent implements OnInit, OnDestroy {
6060
fieldControl = new FormControl<number | null>(null, null);
6161
decimalSeparator: string;
6262
thousandSeparator: string;
63-
currencySymbol: string;
63+
currencySymbol = '';
6464
decimalPrecision: number | undefined;
6565
formatter;
6666
formattedValue: any;
@@ -184,8 +184,6 @@ export class DecimalComponent implements OnInit, OnDestroy {
184184

185185
if (this.bReadonly$ && this.formatter === 'Currency') {
186186
this.currencySymbol = theSymbols.theCurrencySymbol;
187-
} else {
188-
this.currencySymbol = '';
189187
}
190188
this.decimalPrecision = this.configProps$?.decimalPrecision ?? 2;
191189

0 commit comments

Comments
 (0)