From 821fe2d8d8c7e74ecb408a5f17d1e750d82e3a7f Mon Sep 17 00:00:00 2001 From: Isaac Mills Date: Tue, 22 Jul 2025 18:24:46 -0600 Subject: [PATCH] Print secret code to console :| --- thecockpit/src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thecockpit/src/app.rs b/thecockpit/src/app.rs index d966c9c..5aa6ca1 100644 --- a/thecockpit/src/app.rs +++ b/thecockpit/src/app.rs @@ -244,7 +244,7 @@ impl App { self.binary_search_hint.number_to_guess = 0; } #[cfg(target_arch = "wasm32")] - match self.binary_search_hint { + match self.binary_search_hint.number_to_guess { 0 => ratzilla::web_sys::console::log_1(&"Secret code: 5210".into()), 1 => ratzilla::web_sys::console::log_1(&"Secret code: 5234".into()), 2 => ratzilla::web_sys::console::log_1(&"Secret code: 5789".into()),