From 65b1d8e42baf777a991232ef30d1ff673a28bbf4 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Fri, 23 Jul 2021 00:10:53 +1000 Subject: [PATCH] Fix "Ex" display in web UI --- src/stv/wasm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stv/wasm.rs b/src/stv/wasm.rs index 3890d1f..7211fda 100644 --- a/src/stv/wasm.rs +++ b/src/stv/wasm.rs @@ -340,7 +340,7 @@ fn update_results_table(stage_num: usize, state: &CountState, opts } CandidateState::Excluded => { result.push(&format!(r#"{}"#, tdclasses2, pp(&count_card.transfers, opts.pp_decimals)).into()); - if count_card.parcels.is_empty() { + if count_card.parcels.iter().all(|p| p.votes.is_empty()) { result.push(&format!(r#"Ex"#, tdclasses2).into()); } else { result.push(&format!(r#"{}"#, tdclasses2, pp(&count_card.votes, opts.pp_decimals)).into());