From b2f37589ec9f1ec1372652c5785f3c44a4d2041d Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Fri, 4 Feb 2022 23:02:11 +0000 Subject: [PATCH] bug fix --- game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.js b/game.js index 7217312..e6c67c8 100644 --- a/game.js +++ b/game.js @@ -47,13 +47,13 @@ const getMasterQuestionList = () => { }; const getQuestionByCountryName = (name) => { - c = getMasterQuestionList().filter((c) => c.countryname === name); + var c = getMasterQuestionList().filter((c) => c.countryname === name); if (c.length > 0) return c[0]; return null; }; const getQuestionByCapital = (capital) => { - c = getMasterQuestionList().filter((c) => c.capital === capital); + var c = getMasterQuestionList().filter((c) => c.capital === capital); if (c.length > 0) return c[0]; return null; };