Browse Source

Do not require reason for TT

Jonas Björkert 1 year ago
parent
commit
1bbc6f1cef

+ 3 - 1
LoopFollow/Controllers/Nightscout/Treatments/TemporaryTarget.swift

@@ -41,7 +41,9 @@ extension MainViewController {
                 return
             }
 
-            guard let enteredBy = currentEntry["enteredBy"] as? String, let reason = currentEntry["reason"] as? String else {
+            let reason = currentEntry["reason"] as? String ?? ""
+
+            guard let enteredBy = currentEntry["enteredBy"] as? String else {
                 return
             }