From 59214e4d12f54b386e9e3dffbde9a2533ebfd74f Mon Sep 17 00:00:00 2001 From: Adam Doyle Date: Fri, 15 Nov 2024 20:13:26 -0500 Subject: [PATCH] update client after struct change --- clients/leptos/src/components/game/views/judging.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/clients/leptos/src/components/game/views/judging.rs b/clients/leptos/src/components/game/views/judging.rs index 0c0b6dd..77411bf 100644 --- a/clients/leptos/src/components/game/views/judging.rs +++ b/clients/leptos/src/components/game/views/judging.rs @@ -51,10 +51,10 @@ pub fn JudgingView() -> impl IntoView { }); // Select card group - for group in judge_round.get_untracked().unwrap().cards_to_judge { - for card in &group { + for entry in judge_round.get_untracked().unwrap().entries { + for card in &entry.cards_to_judge { if card.uuid == card_clicked() { - set_selected_cards.update(|cards| cards.extend(group)); + set_selected_cards.update(|cards| cards.extend(entry.cards_to_judge)); break; } } @@ -123,12 +123,13 @@ pub fn JudgingView() -> impl IntoView {
{judge_round() .unwrap() - .cards_to_judge + .entries .into_iter() - .map(|group| { + .map(|entries| { view! {
- {group + {entries + .cards_to_judge .into_iter() .map(|card| { view! {