]> git.cworth.org Git - lmno-server/commitdiff
Fix bug attempting to set "answering_idle" state
authorCarl Worth <cworth@cworth.org>
Thu, 18 Jun 2020 15:11:00 +0000 (08:11 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 26 Jun 2020 14:37:59 +0000 (07:37 -0700)
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.

empathy.js

index 28b30638735b25839d5c4023dec7c26a4b6e0d0f..578d0504e15aac6bb3eb8f287d5c5aa0fc4d2aa2 100644 (file)
@@ -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);
     }