Skip to content

Commit 6980522

Browse files
Merge pull request cerebral#252 from SigurdMW/patch-1
change to changeCount function on line 57 and 85
2 parents b26e8e2 + a317867 commit 6980522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/overmind-website/examples/guide/getstarted/changestate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const typescript = {
5454
code: `
5555
import { Action } from 'overmind'
5656
57-
export const changeCount: Action<number> = ({ state }, countChange) {
57+
export const changeCount: Action<number> = ({ state }, countChange) => {
5858
state.count += countChange
5959
}
6060
`,
@@ -82,7 +82,7 @@ const config = {
8282
code: `
8383
import { Action } from 'overmind'
8484
85-
export const changeCount: Action<number> = ({ state }, countChange) {
85+
export const changeCount: Action<number> = ({ state }, countChange) => {
8686
state.count += countChange
8787
}
8888
`,

0 commit comments

Comments
 (0)