Skip to content

Commit

Permalink
Merge pull request #988 from Amsterdam-Music-Lab/bugfix-er/mp-first-c…
Browse files Browse the repository at this point in the history
…ard-seen

Set first_card seen after posting the result and fix double asignment…
  • Loading branch information
Evert-R authored May 2, 2024
2 parents 09c2b6a + 2da08c9 commit 64284aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/MatchingPairs/MatchingPairs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const MatchingPairs = ({
}
setFeedbackClass(fbclass);
turnedCards[0].matchClass = turnedCards[1].matchClass = fbclass;
turnedCards[1].seen = turnedCards[1].seen = true;
turnedCards[0].seen = turnedCards[1].seen = true;
setInBetweenTurns(true);
return;
}
Expand Down Expand Up @@ -113,8 +113,7 @@ const MatchingPairs = ({
setFirstCard(currentCard);
// turn first card, disable events
currentCard.turned = true;
currentCard.noevents = true;
currentCard.seen = true;
currentCard.noevents = true;
currentCard.boardposition = parseInt(index) + 1;
currentCard.timestamp = performance.now();
// reset response interval in case this card has a value from a previous turn
Expand Down

0 comments on commit 64284aa

Please sign in to comment.