Skip to content

Commit

Permalink
revert: kjch latest push version for Home.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
1834423612 authored Nov 14, 2024
1 parent dc1c132 commit 9e6672a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -718,9 +718,8 @@ const submitAnswer = (isCorrect: boolean) => {
}
nextCard()
} else {
if (idkSelected.value || someoneAnsweredIncorrectly.value) {
if (idkSelected.value) {
// If the other player said "I Don't Know", move to next card immediately
//also skip the card if the first and second player's answers were wrong
nextCard()
} else {
someoneAnsweredIncorrectly.value = true
Expand Down Expand Up @@ -927,10 +926,7 @@ const checkBothPlayersReady = () => {
}
const updateGameState = (state: any) => {
currentCard.value.id=state.currentCard.id
currentCard.value.question=state.currentCard.question
currentCard.value.answer=state.currentCard.answer
currentCard.value = state.currentCard
scores.player1 = state.scores.player1
scores.player2 = state.scores.player2
waitingForAnswer.value = state.waitingForAnswer
Expand Down

0 comments on commit 9e6672a

Please sign in to comment.