fix: correct title in README and update question display logic in DetailsCard
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# React Shop
|
||||
# React Quiz App
|
||||
//
|
||||
|
||||

|
||||

|
||||
|
||||
@@ -23,7 +23,7 @@ const DetailsCard: React.FC<Props> = ({
|
||||
<div className="details">
|
||||
<div>Difficulty: {Capitalize(difficulty)}</div>
|
||||
<div>
|
||||
Question: {!gameOver && questionNumber + 1+'\/'}{totalQuestions}
|
||||
Question: {!gameOver && questionNumber + 1}{totalQuestions}
|
||||
</div>
|
||||
<div>Score: {score}</div>
|
||||
{category && (
|
||||
|
||||
Reference in New Issue
Block a user