Skip to content

Commit

Permalink
Fix datetime values without values on y axis
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshelkovenkov committed Feb 15, 2022
1 parent 3d32325 commit 4796b90
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,24 +523,18 @@ export class AppComponent implements OnInit {
const numbers = new Array<number>();
if (this.userHistory && this.userHistory.values && this.userHistory.values.length > 0) {
this.userHistory.values.forEach(v => {
if (v.totalValue > 0) {
numbers.push(Math.round(v.totalValue * this.dataService.getPrice(this.fiat) * 100) / 100);
}
});
}

return numbers;
}



getUserHistoryTotalIncomeDfi(): Array<number> {
const numbers = new Array<number>();
if (this.userHistory && this.userHistory.values && this.userHistory.values.length > 0) {
this.userHistory.values.forEach(v => {
if (v.totalValueIncomeDfi > 0) {
numbers.push(Math.round(v.totalValueIncomeDfi * 100) / 100);
}
});
}

Expand All @@ -551,9 +545,7 @@ export class AppComponent implements OnInit {
const numbers = new Array<number>();
if (this.userHistory && this.userHistory.values && this.userHistory.values.length > 0) {
this.userHistory.values.forEach(v => {
if (v.totalValueIncomeUsd > 0) {
numbers.push(Math.round(v.totalValueIncomeUsd * this.dataService.getPrice(this.fiat) * 100) / 100);
}
});
}

Expand Down

0 comments on commit 4796b90

Please sign in to comment.