Skip to content

Commit

Permalink
fix: hide insights after full draw reset
Browse files Browse the repository at this point in the history
  • Loading branch information
wI2L committed Sep 26, 2023
1 parent 895451c commit 5156508
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func (ui *tui) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return ui, tea.Quit
case tea.KeyCtrlR:
if ui.state == draw {
ui.insights = 0
ui.game.resetDraw(true)
ui.game.drawTiles(ui.opts.minVowels, ui.opts.minConsonants, ui.opts.predicates...)
}
Expand Down

0 comments on commit 5156508

Please sign in to comment.