Procházet zdrojové kódy

Fix mistakenly broken condition nil check in CGM State Model. Thanks @polscm32

Deniz Cengiz před 1 rokem
rodič
revize
eba07f20cc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      FreeAPS/Sources/Modules/CGM/CGMStateModel.swift

+ 1 - 1
FreeAPS/Sources/Modules/CGM/CGMStateModel.swift

@@ -131,7 +131,7 @@ extension CGM.StateModel: CompletionDelegate {
         setupCGM = false
 
         // if CGM was deleted
-        if cgmManager.cgmGlucoseSourceType != nil {
+        if cgmManager.cgmGlucoseSourceType == nil {
             cgmCurrent = cgmDefaultName
             settingsManager.settings.cgm = cgmDefaultName.type
             settingsManager.settings.cgmPluginIdentifier = cgmDefaultName.id