fix(frontend): adds Status::Lose to game_over_check

This commit is contained in:
itsscb 2024-09-06 00:17:36 +02:00
parent e7421551d2
commit e41eeaa890

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