mirror of
https://github.com/alvierahman90/capitals_quiz.git
synced 2024-11-24 02:09:55 +00:00
update bug where all regions == no countries lol
This commit is contained in:
parent
2e8bdd8b18
commit
3199f549dd
2
game.js
2
game.js
@ -93,7 +93,7 @@ var resultsChart = new Chart(
|
|||||||
function init() {
|
function init() {
|
||||||
// generate question list
|
// generate question list
|
||||||
questionList = Object.values(getMasterQuestionList())
|
questionList = Object.values(getMasterQuestionList())
|
||||||
.filter(q => q.region == selectedRegion || q.subregion == selectedRegion)
|
.filter(q => q.region == selectedRegion || q.subregion == selectedRegion || selectedRegion == ALL_REGIONS)
|
||||||
.sort(() => Math.random()-0.5);
|
.sort(() => Math.random()-0.5);
|
||||||
|
|
||||||
// set up state variable
|
// set up state variable
|
||||||
|
Loading…
Reference in New Issue
Block a user