This commit is contained in:
Adam 2024-07-24 01:21:02 -04:00
parent fe037ef50e
commit 59ec512fee

View file

@ -87,7 +87,7 @@ pub fn Websocket() -> impl IntoView {
// Send all messages as strings into chat box
if let Some(message) = message_raw {
if let Ok(_game) = serde_json::from_str::<Game>(message) {
if let Ok(game) = serde_json::from_str::<Game>(message) {
logging::log!("Game object received.");
} else if let Ok(state_summary) =
serde_json::from_str::<ServerStateSummary>(message)