From: Carl Worth Date: Thu, 18 Jun 2020 15:11:00 +0000 (-0700) Subject: Fix bug attempting to set "answering_idle" state X-Git-Url: https://git.cworth.org/git?p=lmno-server;a=commitdiff_plain;h=97a30bcc5ad4730523a80a058db80b89a9c328b7 Fix bug attempting to set "answering_idle" state So annoying to have no static compiler checks for assigning to a mistyped property like this. Anyway, the impact of the bug here would have been fairly minimal: If a user reloaded during idle, they would not have gotten the "Move On" button like expected. --- diff --git a/empathy.js b/empathy.js index 28b3063..578d050 100644 --- a/empathy.js +++ b/empathy.js @@ -203,7 +203,7 @@ class Empathy extends Game { } if (! this.state.answering_idle) { this.answering_idle_timer = setTimeout(() => { - this.state_answering_idle = true; + this.state.answering_idle = true; this.broadcast_event_object('answering-idle', true); }, PHASE_IDLE_TIMEOUT * 1000); }