front-end: Minor fix related to reset button

This commit is contained in:
Stephen Seo 2022-04-25 15:19:25 +09:00
parent 96e28b9d68
commit e060d94186
1 changed files with 1 additions and 1 deletions

View File

@ -1228,7 +1228,7 @@ impl Component for Wrapper {
ctx.link().send_message(WrapperMsg::BackendTick);
}
WrapperMsg::BackendTick => {
if !self.do_backend_tick || shared.game_state.get() == GameState::default() {
if !self.do_backend_tick || !shared.game_state.get().is_networked_multiplayer() {
// disconnect id if backend tick is to be stopped
if let Some(id) = self.player_id.take() {
let function = Function::new_no_args(&format!(