Skip to content

Commit

Permalink
fix: armoire completion percentage not displayed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Blockost committed Dec 15, 2024
1 parent 7df099f commit 7e2b3f4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/tabs/stats/stats-tab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ export class StatsTabComponent implements OnInit {
constructor(private readonly statsService: StatsService) {}

async ngOnInit(): Promise<void> {
console.log("StatsTabComponent init now!");

this.stats = await this.statsService.getStats();
const percentage = Math.fround(this.stats.nbItemsOwned / this.stats.nbItemsTotal);

console.log(percentage, round(percentage));
this.meterItems = [
{
label: `Items owned (${this.stats.nbItemsOwned} out of ${this.stats.nbItemsTotal} items in total)`,
value: round(percentage),
value: round(percentage) * 100,
color: "var(--primary-color)",
},
];
Expand Down

0 comments on commit 7e2b3f4

Please sign in to comment.