Sats component rounding

This commit is contained in:
softsimon
2022-07-01 15:24:14 +02:00
parent 3d8fabd564
commit b179c53661
3 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
‎{{ addPlus && satoshis >= 0 ? '+' : '' }}{{ satoshis | number : '1.0-0' }}
‎{{ addPlus && satoshis >= 0 ? '+' : '' }}{{ satoshis | number : digitsInfo }}
<span class="symbol"><ng-template [ngIf]="network === 'liquid'">L-</ng-template>
<ng-template [ngIf]="network === 'liquidtestnet'">tL-</ng-template>
<ng-template [ngIf]="network === 'testnet'">t-</ng-template>

View File

@@ -9,7 +9,7 @@ import { StateService } from '../../../services/state.service';
})
export class SatsComponent implements OnInit {
@Input() satoshis: number;
@Input() digitsInfo = 0;
@Input() digitsInfo = '1.0-0';
@Input() addPlus = false;
network = '';