Index daily channel stats and show in dashboard widget

This commit is contained in:
nymkappa
2022-07-06 14:56:10 +02:00
parent f7adf3a17c
commit f5b3ae5238
13 changed files with 386 additions and 26 deletions

View File

@@ -15,7 +15,11 @@ export class ChangeComponent implements OnChanges {
constructor() { }
ngOnChanges(): void {
this.change = (this.current - this.previous) / this.previous * 100;
if (!this.previous) {
this.change = 0;
} else {
this.change = (this.current - this.previous) / this.previous * 100;
}
}
}