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

Commit

Permalink
fix(worktime-balance-chart): the float number was not rendered in the…
Browse files Browse the repository at this point in the history
… chart if it's long float
  • Loading branch information
MitanOmar committed Jan 4, 2024
1 parent f2520b1 commit b1339dc
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 b1339dc

Please sign in to comment.