Skip to content

Commit 2184e12

Browse files
authored
Merge pull request #2391 from tylersay/patch-1
code block: typo
2 parents da628c1 + 407e632 commit 2184e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/2/en/part2e.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Now we are ready to add the logic for displaying the error message. Let's change
195195
const changedNote = { ...note, important: !note.important }
196196

197197
noteService
198-
.update(changedNote).then(returnedNote => {
198+
.update(id, changedNote).then(returnedNote => {
199199
setNotes(notes.map(note => note.id !== id ? note : returnedNote))
200200
})
201201
.catch(error => {

0 commit comments

Comments
 (0)