Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
L03TJ3 authored Oct 21, 2024
1 parent 6699b0f commit 0a89256
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/sdk-v2/src/sdk/claim/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ export const useMultiClaim = (poolsDetails: PoolDetails[] | undefined) => {

// once the next contract is set (status === "None"), perform claim
useEffect(() => {
// there can be a delay between sending claim request to wallet and balance update being triggered.
// this can result in state.status still on none, while the original send promise is being handled.
// to prevent re-sending the same promise,
// we check if the contract is already in the claimedContracts[] array.
const isAlreadyPending = claimedContracts.some(c => c.contract === contract);
Expand Down

0 comments on commit 0a89256

Please sign in to comment.