update bug where all regions == no countries lol

This commit is contained in:
Akbar Rahman 2022-01-14 14:17:16 +00:00
parent 2e8bdd8b18
commit 3199f549dd
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

View File

@ -93,7 +93,7 @@ var resultsChart = new Chart(
function init() {
// generate question list
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);
// set up state variable