summaryrefslogtreecommitdiff
path: root/webapp/src/components/game.rs
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/game.rs')
-rw-r--r--webapp/src/components/game.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/src/components/game.rs b/webapp/src/components/game.rs
index 02774e7..9511eb2 100644
--- a/webapp/src/components/game.rs
+++ b/webapp/src/components/game.rs
@@ -24,6 +24,7 @@ pub fn game() -> Html {
let state = state.clone();
Callback::from(move |card| {
if let GameState::Play {
+ dealer,
playing_deal,
contract,
bidding,
@@ -33,6 +34,7 @@ pub fn game() -> Html {
match playing_deal.play(card) {
Err(err) => error!("Could not play card: {:?}", err),
Ok(DealInPlayResult::InProgress(playing_deal)) => state.set(GameState::Play {
+ dealer,
playing_deal,
contract,
bidding,
@@ -52,6 +54,7 @@ pub fn game() -> Html {
Callback::from(move |(contract, bidding)| {
state.set(match contract {
Some(contract) => GameState::Play {
+ dealer,
playing_deal: DealInPlay::new(dealer, deal.clone()),
contract,
bidding,
@@ -69,6 +72,7 @@ pub fn game() -> Html {
}
}
GameState::Play {
+ dealer,
playing_deal,
contract: _,
bidding: _,