Skip to content

Commit f35494a

Browse files
authored
Update part2d.md
update the variable from n to note to help understand the code, and also being consistent with the next part
1 parent 009ee94 commit f35494a

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)