Skip to content

Commit 93e6d2e

Browse files
authored
Merge pull request #4062 from AbdalaKassem/patch-1
Update part2d.md
2 parents 6ef9dd9 + f35494a commit 93e6d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/2/en/part2d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const toggleImportanceOf = id => {
204204
const changedNote = { ...note, important: !note.important }
205205

206206
axios.put(url, changedNote).then(response => {
207-
setNotes(notes.map(n => n.id === id ? response.data : n))
207+
setNotes(notes.map(note => note.id === id ? response.data : note))
208208
})
209209
}
210210
```

0 commit comments

Comments
 (0)