Skip to content

Commit 34fc44e

Browse files
author
Aishwarya Nair
committed
fix delete q bug
1 parent b6cf9fd commit 34fc44e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

peer-prep/src/Components/QuestionList/Question.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const Question = ({question, i, deleteQuestion, updateQuestion}) => {
5555
</div>
5656

5757
</div>
58-
<div className="delete-btn" onClick = {(e) => deleteQuestion(question._id)}>
58+
<div className="delete-btn" onClick = {(e) => deleteQuestion(question.id)}>
5959
<img src= {delete_icon} alt="" />
6060
</div>
6161
</div>

0 commit comments

Comments
 (0)