Skip to content

Commit 51a2f1e

Browse files
committed
Disable revert button when it can't revert
1 parent 4e8d31c commit 51a2f1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ struct PromptToCodePanelToolbar: View {
132132
}
133133
}
134134
.buttonStyle(.plain)
135-
.disabled(provider.isResponding)
135+
.disabled(provider.isResponding || !provider.canRevert)
136136

137137
HStack(spacing: 0) {
138138
Group {

0 commit comments

Comments
 (0)