From 97a30bcc5ad4730523a80a058db80b89a9c328b7 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 18 Jun 2020 08:11:00 -0700 Subject: [PATCH] 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. --- empathy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0