Merge pull request #31 from itsscb/feature

fix(frontend): adds Status::Lose to game_over_check
This commit is contained in:
itsscb 2024-09-06 00:18:30 +02:00 committed by GitHub
commit 94b935802a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}