-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
I sent the crash, but also fixed my build trivially. Obviously nightscout events should have eventType set, but mine has legacy data where that invariant doesn't hold so I discovered the problem.
diff --git a/LoopFollow/Controllers/NightScout.swift b/LoopFollow/Controllers/NightScout.swift
index cf15987..b9f8c77 100644
--- a/LoopFollow/Controllers/NightScout.swift
+++ b/LoopFollow/Controllers/NightScout.swift
@@ -990,7 +990,7 @@ extension MainViewController {
for i in 0..<entries.count {
let entry = entries[i] as [String : AnyObject]?
- switch entry?["eventType"] as! String {
+ switch entry?["eventType"] as! String? {
case "Temp Basal":
tempBasal.append(entry!)
case "Correction Bolus":
Metadata
Metadata
Assignees
Labels
No labels