Skip to content

Commit

Permalink
Corrected correctFlag not being stored
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianFN2 committed Mar 10, 2024
1 parent 146fe27 commit b2fcb9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion questionservice/question-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ class WIQ_API{

chosenNums = []
//Choose a random country of the chosen to make the question
const chosenCountry = countries[this.#getRandomNumNotInSetAndUpdate(numOfChosen,chosenNums)]
const chosenNum = this.#getRandomNumNotInSetAndUpdate(numOfChosen,chosenNums)
const chosenCountry = countries[chosenNum]
correctAnswerFlag = imgs[chosenNum]

const questionAndFlags = {
question: `Which of the following flags belongs to ${chosenCountry}?`,
Expand Down

0 comments on commit b2fcb9d

Please sign in to comment.