Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Loop/View Controllers/CarbAbsorptionViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ final class CarbAbsorptionViewController: ChartsTableViewController, Identifiabl
switch result {
case .success(let status):
carbStatuses = status
carbsOnBoard = status.clampedCarbsOnBoard
case .failure(let error):
self.deviceManager.logger.addError(error, fromSource: "CarbStore")
refreshContext.update(with: .carbs)
Expand All @@ -167,8 +168,6 @@ final class CarbAbsorptionViewController: ChartsTableViewController, Identifiabl
}
reloadGroup.leave()
}

carbsOnBoard = state.carbsOnBoard
}

if refreshContext.remove(.targets) != nil {
Expand Down