DPGAlliance / publicgoods-scripts

Scripts to generate static site from WordPress
http://digitalpublicgoods.net
MIT License
4 stars 6 forks source link

FIX: #59 replace p with div #60

Closed lacabra closed 3 years ago

lacabra commented 3 years ago

Fix #59.

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)