Skip to content

Commit

Permalink
Merge pull request #52 from InvArch/yaki-smol-claim-error-fix
Browse files Browse the repository at this point in the history
Fix smol restake error handling
  • Loading branch information
shibatales authored Jan 23, 2024
2 parents 13a5abb + 59a3ca6 commit 58be4d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/routes/staking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,11 @@ const Staking = () => {
handleRestakingLogic,
});

if (!result) {
// Halt if there is a restake error
return;
}

if (initialUnclaimed.current !== null) {
setTotalClaimed(prevTotalClaimed => prevTotalClaimed.plus(initialUnclaimed.current || new BigNumber(0)));
}
Expand Down

1 comment on commit 58be4d7

@vercel
Copy link

@vercel vercel bot commented on 58be4d7 Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.