Skip to content

Commit

Permalink
fix(inventory): item stats recalculate properly
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 19, 2023
1 parent 2004bc6 commit f00bc1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/src/app/components/item-stats/item-stats.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ export class ItemStatsComponent implements OnInit {
constructor() {}

ngOnInit() {
this.parseStats();
}

ngOnChanges() {
this.parseStats();
}

private parseStats() {
this.stats = [];
const stats = (this.item as IEquipment).stats || {};

Object.keys(stats)
Expand Down

0 comments on commit f00bc1f

Please sign in to comment.