diff --git a/frontend/src/pages/home.rs b/frontend/src/pages/home.rs index 52b0861..098b474 100644 --- a/frontend/src/pages/home.rs +++ b/frontend/src/pages/home.rs @@ -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); }