The error occurs because certain code is wrapped with <p>...</p> which then inserts HTML text from src/api/quizQuestions which also has <p>...</p> in it, thus triggering an error that <p> cannot be a descendant of <p>. To preserve the current structure, the outermost <p> is changed to a <div> that can have <p> as children.
Also addressing the following error in commit 2e1be7d
index.js:1 Warning: Failed prop type: Invalid prop `quizScore` of type `number` supplied to `Result`, expected `string`.
in Result (at Eligibility.js:348)
in Eligibility (at src/index.js:8)
Fix #59.
The error occurs because certain code is wrapped with
<p>...</p>
which then inserts HTML text fromsrc/api/quizQuestions
which also has<p>...</p>
in it, thus triggering an error that<p>
cannot be a descendant of<p>
. To preserve the current structure, the outermost<p>
is changed to a<div>
that can have<p>
as children.Also addressing the following error in commit 2e1be7d