Skip to content

Commit

Permalink
fix: πŸ› sometimes no projects visible in home #784
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 committed Feb 1, 2024
1 parent f16386e commit 59f2a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/useLoadMore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const useLoadMore = ({
// Poll interval that works with pagination
useEffect(() => {
const intervalId = setInterval(() => {
const total = data?.[dataQueryIdentifier].edges.length || 0;
const total = data?.[dataQueryIdentifier].edges.length || variables.last;
refetch({
...variables,
last: total,
Expand Down

0 comments on commit 59f2a34

Please sign in to comment.