Skip to content

Commit

Permalink
fix(cli): prevents next step until an available commit type is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnjpg committed Oct 21, 2022
1 parent a6176fc commit 60563af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch m.viewing {
default:
m = m.submit().advance()
case commitTypeIndex:
if m.currentComponent().Value() == "" {
return m, cmd
} else {
m = m.submit().advance()
}
case scopeIndex:
if m.currentComponent().Value() == "new scope" {
m.scopeInput, cmd = m.scopeInput.Update(msg)
Expand Down

0 comments on commit 60563af

Please sign in to comment.