Bumped the version to 7
Fixed double exception being thrown Currency pipe broke the accounts pipe
This commit is contained in:
@ -140,7 +140,8 @@ export class ReceiptComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
|
||||
rowAmount(amount: string = ''): number {
|
||||
try {
|
||||
return math.eval(amount.trim().replace(',', ''));
|
||||
amount = amount.replace(new RegExp('(₹[\s]*)|(,)|(\s)', 'g'), '');
|
||||
return math.eval(amount);
|
||||
} catch {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user