Skip to content

Commit c786c8a

Browse files
committed
comments-fixed
1 parent c94a868 commit c786c8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hashnode-client",
3-
"version": "1.0.2",
3+
"version": "1.0.21",
44
"type": "module",
55
"description": "A JavaScript client for the Headless Hashnode. The package contains helpful ReactJS hooks to use blog data using its GraphQL APIs.",
66
"author": {

package/src/useHashnodeComments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function useHashnodeComments(settings = {}) {
3838
}, [host, first, endCursor, slug]);
3939

4040
const loadMoreComments = useCallback(() => {
41-
getCommentsForPost(host, slug, first, endCursor, true);
41+
getCommentsForPost(host, slug, first, pageInfo.endCursor, true);
4242
}, [pageInfo.endCursor]);
4343

4444
return {

0 commit comments

Comments
 (0)