Skip to content

Commit e57dd35

Browse files
authored
Update part6d.md
There is no asynchronous process happening inside the function
1 parent fcbc994 commit e57dd35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/6/en/part6d.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ import { createNote } from '../reducers/noteReducer'
314314

315315
const NewNote = (props) => { // highlight-line
316316

317-
const addNote = async (event) => {
317+
const addNote = (event) => {
318318
event.preventDefault()
319319
const content = event.target.note.value
320320
event.target.note.value = ''
@@ -352,7 +352,7 @@ import { createNote } from '../reducers/noteReducer' // highlight-line
352352

353353
const NewNote = (props) => {
354354

355-
const addNote = async (event) => {
355+
const addNote = (event) => {
356356
event.preventDefault()
357357
const content = event.target.note.value
358358
event.target.note.value = ''

0 commit comments

Comments
 (0)