ソースを参照

Merge branch 'dev' into update-readme

Deniz Cengiz 1 ヶ月 前
コミット
9f6f0e2da2
2 ファイル変更3 行追加2 行削除
  1. 1 1
      Config.xcconfig
  2. 2 1
      Trio/Sources/Services/Network/TidepoolManager.swift

+ 1 - 1
Config.xcconfig

@@ -19,7 +19,7 @@ TRIO_APP_GROUP_ID = group.org.nightscout.$(DEVELOPMENT_TEAM).trio.trio-app-group
 
 // The developers set the version numbers, please leave them alone
 APP_VERSION = 0.6.0
-APP_DEV_VERSION = 0.6.0.82
+APP_DEV_VERSION = 0.6.0.83
 APP_BUILD_NUMBER = 1
 COPYRIGHT_NOTICE =
 

+ 2 - 1
Trio/Sources/Services/Network/TidepoolManager.swift

@@ -320,11 +320,12 @@ extension BaseTidepoolManager {
                                     .processTempBasalEvent(event, existingTempBasalEntries: existingTempBasalEntries)
                             )
                     case .bolus:
+                        guard let amount = event.amount else { return result }
                         let bolusDoseEntry = DoseEntry(
                             type: .bolus,
                             startDate: event.timestamp,
                             endDate: event.timestamp,
-                            value: Double(event.amount!),
+                            value: Double(amount),
                             unit: .units,
                             deliveredUnits: nil,
                             syncIdentifier: event.id,