Skip to content

Commit

Permalink
Release canidate
Browse files Browse the repository at this point in the history
  • Loading branch information
aketkar18 committed Mar 19, 2023
1 parent 2ac0beb commit 5267fdd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
Binary file added client/public/favicon.ico
Binary file not shown.
Binary file modified client/public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions client/src/Quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ function Quiz({ quiz, onAnswer, clicked }) {
{question.choices.map((choice, index) => {
var choices = ["a", "b", "c", "d", "e"];
const isCorrect = choices[index] === question.answer.toLowerCase();
const className = `answer-choice ${
clicked[key - 1] ? (isCorrect ? "correct" : "incorrect") : ""
}`;
const className = `answer-choice ${clicked[key - 1] ? (isCorrect ? "correct" : "incorrect") : ""
}`;
return (
<li
key={index}
Expand All @@ -42,8 +41,8 @@ function Quiz({ quiz, onAnswer, clicked }) {
})}
</ul>
{explanations[key - 1] && (
<p className={`explanation ${correct[key-1] ? 'text-correct' : 'text-incorrect'}`}>
{explanations[key - 1].explanation}{explanations[key - 1]}
<p className={`explanation ${correct[key - 1] ? 'text-correct' : 'text-incorrect'}`}>
{explanations[key - 1].explanation}{explanations[key - 1]}
</p>
)}
</div>
Expand Down
5 changes: 1 addition & 4 deletions client/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,4 @@ code {

.text-incorrect {
color: red;
}



}

0 comments on commit 5267fdd

Please sign in to comment.