Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1159 from adfinis/fix-Workbalance-chart-data
Browse files Browse the repository at this point in the history
fix(worktime-balance-chart): the float number was not rendered in the chart if it's long float
  • Loading branch information
MitanOmar authored Jan 4, 2024
2 parents fec59ff + b1339dc commit c182cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/worktime-balance-chart/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class WorktimeBalanceChart extends Component {
datasets: [
{
data: this.args.worktimeBalances.map(({ balance }) =>
balance.asHours()
Number.parseFloat(balance.asHours().toFixed(2))
),
},
],
Expand Down

0 comments on commit c182cd9

Please sign in to comment.