Fix for storing winning word
This commit is contained in:
parent
9755aed007
commit
9595e62282
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class Game
|
|||
if board.winner?
|
||||
@outcomes << Outcome.new(
|
||||
state: :win,
|
||||
correct: board.correct_answer,
|
||||
correct: board.guesses.last,
|
||||
guesses: board.guesses,
|
||||
)
|
||||
board.reset!
|
||||
|
|
Loading…
Reference in a new issue