Skip to content

Commit

Permalink
Fix old usage of sweepDistances
Browse files Browse the repository at this point in the history
  • Loading branch information
cory0417 committed Dec 10, 2024
1 parent 077e519 commit 8bede13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MusicalCaneGame/ProfileDataView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,15 @@ struct ProfileDataView: View {
Text("Sweep Distances")
.font(.headline)
.padding(.top)

if sensorDriver.sweepDistances.isEmpty {
// TODO: Fetch the session data from DB
if sessionData.isEmpty {
Text("No sweeps recorded yet.")
.foregroundColor(.gray)
.padding()
} else {
// TODO: Fetch the session data from DB
ScatterPlotView(
dataPoints: sensorDriver.sweepDistances,
dataPoints: sessionData[0].sweepDistances,
targetDistance: 30,
percentTolerance: 0.05
)
Expand Down

0 comments on commit 8bede13

Please sign in to comment.