Skip to content

Commit

Permalink
🛠small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Akhlak-Hossain-Jim committed Mar 18, 2022
1 parent 8f97bd5 commit 28aba51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/StakeDrop/QAComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default function QAComponent({
}) {
// answer
const [qArray, setqArray] = useState();
const [answerArray, setAnswerArray] = useState();
const [Answer1, setAnswer1] = useState();
const [Answer2, setAnswer2] = useState();
const [Answer3, setAnswer3] = useState();
Expand Down Expand Up @@ -114,6 +115,7 @@ export default function QAComponent({
if (data.success === true) {
setSubmitStatus(true);
setSubmit(countAnswer(data.qaData));
setAnswerArray(data.qaData.length);
Quiz(true);
} else {
setSubmitStatus(false);
Expand Down Expand Up @@ -150,7 +152,7 @@ export default function QAComponent({
<br />
<br />
<h3>
You answered {Submit} out of {qArray} questions correctly.
You answered {Submit} out of {answerArray} questions correctly.
</h3>
<br />
<div className="section_questions__qBox_button a">
Expand Down

0 comments on commit 28aba51

Please sign in to comment.