From c8c293e6eb67a5497917042ebc37a448713ea645 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 7 Jul 2021 20:38:32 -0700 Subject: [PATCH] Fix error reported in #3121. --- src/Posting/Captcha.t.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Posting/Captcha.t.coffee b/src/Posting/Captcha.t.coffee index 954b23fd7..4485b58f1 100644 --- a/src/Posting/Captcha.t.coffee +++ b/src/Posting/Captcha.t.coffee @@ -48,7 +48,8 @@ Captcha.t = delete @nodes.container updateThread: -> - {boardID, threadID} = Captcha.t.currentThread + return unless @isEnabled + {boardID, threadID} = (Captcha.t.currentThread or {}) newThread = Captcha.t.getThread() unless newThread.boardID is boardID and newThread.threadID is threadID Captcha.t.destroy()