Commit 475dd240 authored by Jiwon Yoon's avatar Jiwon Yoon
Browse files

ref

parent 923219b0
......@@ -25,7 +25,7 @@ function Admin() {
function handleClickQuiz(e) {
indexRef.current = Number(e.target.id) - 1
console.log(dbRef.current, indexRef.current)
setresult(<AdminQuiz quizNum={e.target.id} fn={handleClickSave} data={dbRef.current} />)
setresult(<AdminQuiz quizNum={e.target.id} fn={handleClickSave} data={dbRef.current[e.target.id]} />)
}
......
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