We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 986afee commit e27b1abCopy full SHA for e27b1ab
Core/Sources/SuggestionWidget/SuggestionWidgetController.swift
@@ -51,7 +51,11 @@ public extension SuggestionWidgetController {
51
}
52
53
func discardSuggestion() {
54
- store.send(.panel(.discardSuggestion))
+ store.withState { state in
55
+ if state.panelState.content.suggestion != nil {
56
+ store.send(.panel(.discardSuggestion))
57
+ }
58
59
60
61
#warning("TODO: Make a progress controller that doesn't use TCA.")
0 commit comments