diff --git a/frontend/src/app/components/treasuries/treasuries-graph/treasuries-graph.component.ts b/frontend/src/app/components/treasuries/treasuries-graph/treasuries-graph.component.ts index 09080f7df..3b4cc6ea4 100644 --- a/frontend/src/app/components/treasuries/treasuries-graph/treasuries-graph.component.ts +++ b/frontend/src/app/components/treasuries/treasuries-graph/treasuries-graph.component.ts @@ -170,7 +170,7 @@ export class TreasuriesGraphComponent implements OnInit, OnChanges, OnDestroy { this.seriesNameToLabel = {}; for (const treasury of this.treasuries) { - this.seriesNameToLabel[treasury.wallet] = treasury.enterprise || treasury.name; + this.seriesNameToLabel[treasury.wallet] = treasury.name || treasury.enterprise || treasury.wallet; } const legendData = this.treasuries.map(treasury => ({ @@ -301,7 +301,7 @@ export class TreasuriesGraphComponent implements OnInit, OnChanges, OnDestroy { const marker = ``; tooltip += `
- ${marker} ${treasury.enterprise || treasury.name}: + ${marker} ${treasury.name || treasury.enterprise || treasury.wallet}: ${this.formatBTC(balance)}
`; } diff --git a/frontend/src/app/components/treasuries/treasuries-pie/treasuries-pie.component.ts b/frontend/src/app/components/treasuries/treasuries-pie/treasuries-pie.component.ts index b0daae4bb..0219f4642 100644 --- a/frontend/src/app/components/treasuries/treasuries-pie/treasuries-pie.component.ts +++ b/frontend/src/app/components/treasuries/treasuries-pie/treasuries-pie.component.ts @@ -115,7 +115,7 @@ export class TreasuriesPieComponent implements OnChanges { }[] = this.treasuries.map((treasury, index) => ({ treasury, id: treasury.wallet, - label: treasury.enterprise || treasury.name, + label: treasury.name || treasury.enterprise || treasury.wallet, balance: this.walletBalance[treasury.wallet], share: (this.walletBalance[treasury.wallet] / total) * 100, color: chartColors[index % chartColors.length], diff --git a/frontend/src/app/components/treasuries/treasuries.component.html b/frontend/src/app/components/treasuries/treasuries.component.html index 9744f37c4..f86a3ccf3 100644 --- a/frontend/src/app/components/treasuries/treasuries.component.html +++ b/frontend/src/app/components/treasuries/treasuries.component.html @@ -23,7 +23,7 @@ {{i + 1}} - {{ treasury.enterprise || treasury.name }} + {{ treasury.name || treasury.enterprise || treasury.wallet }}