HackYourFuture-CPH / Guide-IT

Guide IT, a tool to help newcomers decide their IT path
MIT License
3 stars 1 forks source link

Changed isAgreement question from boolean to number #223

Closed cph-kiwi closed 3 years ago

cph-kiwi commented 3 years ago

Description

There was an error in the quiz-page due to a prop types requirement for a boolean as IsAgreementQuestion. In the database it is either 0 or 1, so in the QuizAnswers.component, I changed treatment of the prop from a boolean to a number.

Fixes #

How to test?

Open branch and run "npm run dev". Run test through and check for errors.

Checklist