Wrap large amounts in power of ten in address graph
This commit is contained in:
parent
535e5313ef
commit
cb3326d691
@ -319,6 +319,9 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
|
|||||||
} else if (valSpan > 10_000_000) {
|
} else if (valSpan > 10_000_000) {
|
||||||
return `${(val / 100_000_000).toFixed(2)} BTC`;
|
return `${(val / 100_000_000).toFixed(2)} BTC`;
|
||||||
} else if (valSpan > 1_000_000) {
|
} else if (valSpan > 1_000_000) {
|
||||||
|
if (maxValue > 100_000_000_000) {
|
||||||
|
return `${this.amountShortenerPipe.transform(Math.round(val / 100_000_000), 3, undefined, true)} BTC`;
|
||||||
|
}
|
||||||
return `${(val / 100_000_000).toFixed(3)} BTC`;
|
return `${(val / 100_000_000).toFixed(3)} BTC`;
|
||||||
} else {
|
} else {
|
||||||
return `${this.amountShortenerPipe.transform(val, 0, undefined, true)} sats`;
|
return `${this.amountShortenerPipe.transform(val, 0, undefined, true)} sats`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user