Skip to content

Commit

Permalink
fix: fix decimals in filament length output of HistoryAllPrintStatusT…
Browse files Browse the repository at this point in the history
…ableItem

Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Nov 5, 2024
1 parent ba65281 commit 271d481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/charts/HistoryAllPrintStatusTableItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export default class HistoryAllPrintStatusTableItem extends Mixins(BaseMixin) {
get value() {
if (this.valueName === 'filament') {
if (this.item.value > 1000) return Math.round(this.item.value / 1000).toString() + ' m'
if (this.item.value > 1000) return Math.round(this.item.value / 1000).toFixed(2) + ' m'
return this.item.value.toString() + ' mm'
return this.item.value.toFixed(0) + ' mm'
}
if (this.valueName === 'time') {
Expand Down

0 comments on commit 271d481

Please sign in to comment.