Commit ab596d53 authored by Jiwon Yoon's avatar Jiwon Yoon
Browse files

string(a)

parent b33f23cb
...@@ -53,7 +53,7 @@ function Quiz() { ...@@ -53,7 +53,7 @@ function Quiz() {
<form> <form>
{question.Choose.map((a, index) => {question.Choose.map((a, index) =>
<div> <div>
<input type="radio" name='answer' id={index} value={a} onChange={handleChange} checked={parseInt(selected) === a} /> <input type="radio" name='answer' id={index} value={a} onChange={handleChange} checked={selected === String(a)} />
<label className="font-weight-bold" htmlFor={a}>{a}</label> <label className="font-weight-bold" htmlFor={a}>{a}</label>
</div> </div>
)} )}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment