Skip to content

Commit 7075bdf

Browse files
committed
Merge pull request #56 from davidwatkins73/patch-1
fix: incorrect substitution parameter in invariant error message
2 parents e9f1863 + 774679e commit 7075bdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/connector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ export default function Connector(store) {
2121

2222
invariant(
2323
isFunction(finalMapStateToTarget),
24-
'mapStateToTarget must be a Function. Instead received $s.', finalMapStateToTarget
24+
'mapStateToTarget must be a Function. Instead received %s.', finalMapStateToTarget
2525
);
2626

2727
invariant(
2828
isPlainObject(finalMapDispatchToTarget) || isFunction(finalMapDispatchToTarget),
29-
'mapDispatchToTarget must be a plain Object or a Function. Instead received $s.', finalMapDispatchToTarget
29+
'mapDispatchToTarget must be a plain Object or a Function. Instead received %s.', finalMapDispatchToTarget
3030
);
3131

3232
let slice = getStateSlice(store.getState(), finalMapStateToTarget);

0 commit comments

Comments
 (0)