Skip to content

Commit

Permalink
Remoye duplicate code after bad merge.
Browse files Browse the repository at this point in the history
Remove superfluent info.
  • Loading branch information
Jon-b-m committed Jun 17, 2023
1 parent b4aba95 commit 8dd4601
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ extension Bolus {
.alert(isPresented: $displayError) {
Alert(
title: Text("Warning!"),
message: Text("\n" + alertString() + NSLocalizedString(
"\n\nTap 'Add' to continue with selected amount.",
comment: "Alert text to confirm bolus amount to add"
)),
message: Text("\n" + alertString() + "\n"),
primaryButton: .destructive(
Text("Add"),
action: {
Expand All @@ -127,25 +124,7 @@ extension Bolus {
),
secondaryButton: .cancel()
)
}
.alert(isPresented: $displayError) {
Alert(
title: Text("Warning!"),
message: Text("\n" + alertString() + NSLocalizedString(
"\n\nTap 'Add' to continue with selected amount.",
comment: "Alert text to confirm bolus amount to add"
)),
primaryButton: .destructive(
Text("Add"),
action: {
state.amount = state.insulinRecommended
displayError = false
}
),
secondaryButton: .cancel()
)
}
.onAppear {
}.onAppear {
configureView {
state.waitForSuggestionInitial = waitForSuggestion
state.waitForSuggestion = waitForSuggestion
Expand Down

0 comments on commit 8dd4601

Please sign in to comment.