Skip to content

Commit

Permalink
feat(connectHits): typo widgetOptions -> widgetParams
Browse files Browse the repository at this point in the history
  • Loading branch information
iam4x committed Mar 24, 2017
1 parent 86f9739 commit 4420231
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/connectors/hits/connectHits.js
Expand Up @@ -37,8 +37,8 @@ Full documentation available at https://community.algolia.com/instantsearch.js/c
export default function connectHits(renderFn) {
checkRendering(renderFn, usage);

return (widgetOptions = {}) => {
const {hitsPerPage = 20} = widgetOptions;
return (widgetParams = {}) => {
const {hitsPerPage = 20} = widgetParams;

return {
getConfiguration() {
Expand All @@ -50,7 +50,7 @@ export default function connectHits(renderFn) {
hits: [],
results: undefined,
instantSearchInstance,
widgetOptions,
widgetParams,
}, true);
},

Expand All @@ -59,7 +59,7 @@ export default function connectHits(renderFn) {
hits: results.hits,
results,
instantSearchInstance,
widgetOptions,
widgetParams,
}, false);
},
};
Expand Down

0 comments on commit 4420231

Please sign in to comment.