fix(frontend): adds Status::Lose to game_over_check
This commit is contained in:
parent
e7421551d2
commit
e41eeaa890
@ -230,6 +230,8 @@ pub fn Home() -> Html {
|
||||
.all(|v| matches!(v, CharStatus::Match(_)))
|
||||
{
|
||||
result.set(Status::Win(submitted_words.iter().count()));
|
||||
} else {
|
||||
result.set(Status::Lose(MAX_TRIES));
|
||||
}
|
||||
game_over.set(true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user