From c002647108aafa2a3861c392c674eaaf8b1b7170 Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Tue, 25 Oct 2022 13:02:35 +0100 Subject: [PATCH] Hopefully fix cut values (thanks denpadokei) --- src/components/ScoreStats.js | 12 +++--- src/pages/overlay.js | 79 ++++++++++++++++++++++-------------- 2 files changed, 55 insertions(+), 36 deletions(-) diff --git a/src/components/ScoreStats.js b/src/components/ScoreStats.js index 99b5dcd..59b2bd7 100644 --- a/src/components/ScoreStats.js +++ b/src/components/ScoreStats.js @@ -44,14 +44,14 @@ export default class ScoreStats extends Component {
Average Cut
{this.getAverage(data.SaberA.averagePreSwing).toFixed(2)}
-{this.getAverage(data.SaberA.averagePostSwing).toFixed(2)}
-{this.getAverage(data.SaberA.averageCut).toFixed(2)}
+{data.SaberA.averagePreSwing.toFixed(2)}
+{data.SaberA.averagePostSwing.toFixed(2)}
+{data.SaberA.cutDistanceScore.toFixed(2)}
{this.getAverage(data.SaberB.averagePreSwing).toFixed(2)}
-{this.getAverage(data.SaberB.averagePostSwing).toFixed(2)}
-{this.getAverage(data.SaberB.averageCut).toFixed(2)}
+{data.SaberB.averagePreSwing.toFixed(2)}
+{data.SaberB.averagePostSwing.toFixed(2)}
+{data.SaberB.cutDistanceScore.toFixed(2)}