Skip to content

Commit b5351cd

Browse files
authored
Merge pull request #596 from tidepool-org/cameron/LOOP-4721-ui-updates-to-mute-alerts
[LOOP-4721] UI Updates for Loop Alert Management
2 parents ab9f89f + 2741c8e commit b5351cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Loop/Views/SettingsView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,17 @@ public struct SettingsView: View {
111111
.actionSheet(item: $actionSheet) { actionSheet in
112112
switch actionSheet {
113113
case .cgmPicker:
114-
ActionSheet(
114+
return ActionSheet(
115115
title: Text("Add CGM", comment: "The title of the CGM chooser in settings"),
116116
buttons: cgmChoices
117117
)
118118
case .pumpPicker:
119-
ActionSheet(
119+
return ActionSheet(
120120
title: Text("Add Pump", comment: "The title of the pump chooser in settings"),
121121
buttons: pumpChoices
122122
)
123123
case .servicePicker:
124-
ActionSheet(
124+
return ActionSheet(
125125
title: Text("Add Service", comment: "The title of the add service action sheet in settings"),
126126
buttons: serviceChoices
127127
)
@@ -130,9 +130,9 @@ public struct SettingsView: View {
130130
.alert(item: $alert) { alert in
131131
switch alert {
132132
case .deleteCGMData:
133-
makeDeleteAlert(for: self.viewModel.cgmManagerSettingsViewModel)
133+
return makeDeleteAlert(for: self.viewModel.cgmManagerSettingsViewModel)
134134
case .deletePumpData:
135-
makeDeleteAlert(for: self.viewModel.pumpManagerSettingsViewModel)
135+
return makeDeleteAlert(for: self.viewModel.pumpManagerSettingsViewModel)
136136
}
137137
}
138138
.sheet(item: $sheet) { sheet in

0 commit comments

Comments
 (0)