Skip to content

Commit

Permalink
Fix display for agora stats
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Paranoiaque committed Nov 1, 2024
1 parent e2964da commit e63c619
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/app/statistics/statistics.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@
<td>
{{
batch.rate
| number: '' : this.translate.currentLang
| number
: '1.0-' +
Math.max(3, Tools.nbDigits(batch.rate))
: this.translate.currentLang
}}
</td>
<td>
Expand Down Expand Up @@ -150,7 +153,10 @@
<td>
{{
batch.rate
| number: '' : this.translate.currentLang
| number
: '1.0-' +
Math.max(3, Tools.nbDigits(batch.rate))
: this.translate.currentLang
}}
</td>
<td>
Expand Down Expand Up @@ -232,7 +238,10 @@
<td>
{{
batch.rate
| number: '' : this.translate.currentLang
| number
: '1.0-' +
Math.max(3, Tools.nbDigits(batch.rate))
: this.translate.currentLang
}}
</td>
<td>
Expand Down Expand Up @@ -301,7 +310,10 @@
<td>
{{
batch.rate
| number: '' : this.translate.currentLang
| number
: '1.0-' +
Math.max(3, Tools.nbDigits(batch.rate))
: this.translate.currentLang
}}
</td>
<td>
Expand Down
2 changes: 2 additions & 0 deletions src/app/statistics/statistics.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export class StatisticsComponent implements OnInit, OnDestroy {
}[];
private storeroomStats: { quantity: number; rate: number; solded: number }[];

Math = Math;
parseFloat = parseFloat;
Tools = Tools;

constructor(
Expand Down

0 comments on commit e63c619

Please sign in to comment.