Skip to content

Commit aba6f69

Browse files
Fix nbrady's stuff
1 parent 5a29877 commit aba6f69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class HookActions {
7575
let error;
7676
if (typeof reducer !== "function") {
7777
error = new TypeError(
78-
`async action "${key}" must return a reducer function; instead got "${typeof reducer}"`
78+
`async action "${reducer}" must return a reducer function; instead got "${typeof reducer}"`
7979
);
8080
}
8181
this.__state = reducer.apply(this);
@@ -87,7 +87,7 @@ class HookActions {
8787
} else {
8888
if (typeof reducer !== "function") {
8989
error = new TypeError(
90-
`async action "${key}" must return a reducer function; instead got "${typeof reducer}"`
90+
`action "${reducer}" must return a reducer function; instead got "${typeof reducer}"`
9191
);
9292
}
9393
this.__state = reducerOrPromise.apply(this);

0 commit comments

Comments
 (0)