Skip to content

Commit

Permalink
fix: console error on claim pages
Browse files Browse the repository at this point in the history
  • Loading branch information
soulBit committed May 14, 2024
1 parent 312a7f0 commit 6501611
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const useClaimLp = (onComplete?: () => void) => {
.catch(() => [])) as number[];
}

return claims.filter(c => unclaimedIndexes.includes(c.index));
return claims.filter(c => unclaimedIndexes?.includes(c.index));
}, [contract, findProofs]);

const claim = useCallback(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const useClaimPowa = (onComplete?: () => void) => {
.catch(() => [])) as number[];
}

return claims.filter(c => unclaimedIndexes.includes(c.index));
return claims.filter(c => unclaimedIndexes?.includes(c.index));
}, [contract, findProofs]);

const claim = useCallback(async () => {
Expand Down

0 comments on commit 6501611

Please sign in to comment.