Skip to content

Commit

Permalink
fix: don't allow word submission after timer is done
Browse files Browse the repository at this point in the history
Closes #6
  • Loading branch information
CamiloGarciaLaRotta committed Nov 11, 2020
1 parent 5670476 commit ab999df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, countDown()
}
m.done = true
return m, nil
return m, tea.Quit

case newWordMsg:
m.currentWord = m.babbler.Babble()
Expand Down

0 comments on commit ab999df

Please sign in to comment.