From 1aafe8570ea131b6d1bdbdf57ca9152716f0e97a Mon Sep 17 00:00:00 2001 From: copios Date: Fri, 25 Jan 2019 13:17:49 +0900 Subject: [PATCH] fix(training_score): round training score to two decimal places --- .../components/sensor/report/charts/training_score/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/renderer/components/sensor/report/charts/training_score/index.jsx b/app/renderer/components/sensor/report/charts/training_score/index.jsx index 0431282..1b671ff 100644 --- a/app/renderer/components/sensor/report/charts/training_score/index.jsx +++ b/app/renderer/components/sensor/report/charts/training_score/index.jsx @@ -51,7 +51,7 @@ class TrainingScoreChart extends Component { {segments({ opacity: 0.1 })} {segments({ limit: score })} - {label({ color: colors[zone], label: score.toString() })} + {label({ color: colors[zone], label: score.toFixed(2) })} ) }