Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/6/en/part6c.md
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ setTimeout(() => {
Make an action creator, which enables one to provide the notification as follows:

```js
dispatch(setNotification(`you voted '${anecdote.content}'`, 10))
dispatch(setNotification({ message: `you voted '${anecdote.content}'`, timeout: 10 }))
```

The first parameter is the text to be rendered and the second parameter is the time to display the notification given in seconds.
Expand Down