From 61568b8c5c3cb75fa001a658459201dfd8e2c752 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 1 May 2021 23:28:38 -0500 Subject: [PATCH] Fix variable declaration location --- bot/awesomescibo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index 9d30e8d..f02522a 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -313,6 +313,7 @@ async function generateRound(message) { } }); let i; + let finalizedHTML = ""; for (i = 1; i < 26; i++) { let tossup_question; let question_category; @@ -321,7 +322,6 @@ async function generateRound(message) { let bonus_question; let bonus_format; let bonus_answer; - let finalizedHTML = ""; let htmlContent = ""; await fetch("https://scibowldb.com/api/questions/random") .then((response) => response.json())