Show two LN network stats charts on dashboard

This commit is contained in:
nymkappa
2022-08-12 15:35:00 +02:00
parent 6cba4a8492
commit 39549c8ca9
7 changed files with 169 additions and 68 deletions

View File

@@ -5,7 +5,7 @@ import { Pipe, PipeTransform } from '@angular/core';
})
export class AmountShortenerPipe implements PipeTransform {
transform(num: number, ...args: any[]): unknown {
const digits = args[0] || 1;
const digits = args[0] ?? 1;
const unit = args[1] || undefined;
if (num < 1000) {