diff --git a/client/src/components/game/views/playing.rs b/client/src/components/game/views/playing.rs index 2619bf2..b4ee659 100644 --- a/client/src/components/game/views/playing.rs +++ b/client/src/components/game/views/playing.rs @@ -47,6 +47,7 @@ pub fn PlayingView() -> impl IntoView { // Toggle selected status of cards create_effect(move |_| { if card_clicked() != "".to_string() + && !submitted() && submitted_cards().len() < game_meta().unwrap().black.1.into() { if let Some(clicked_card) = player_hand @@ -114,6 +115,7 @@ pub fn PlayingView() -> impl IntoView { view! { } } /> + // Submit button @@ -124,6 +126,7 @@ pub fn PlayingView() -> impl IntoView { view! {

"Card(s) submitted. Waiting for other players..."

} } > + @@ -154,6 +157,7 @@ pub fn PlayingView() -> impl IntoView { } } /> + } }