Skip to content

Commit

Permalink
fix: correct dependency array for estimating stake rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeatt committed Apr 28, 2023
1 parent 4be2add commit 1622590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Staking/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ const Staking = (): JSX.Element => {
if (!estimatedRewardAmountAndAPYRefetch) return;

estimatedRewardAmountAndAPYRefetch();
}, [isValid, estimatedRewardAmountAndAPYRefetch]);
}, [isValid, monetaryLockingAmount, blockLockTimeExtension, estimatedRewardAmountAndAPYRefetch]);

React.useEffect(() => {
if (!lockTime) return;
Expand Down

0 comments on commit 1622590

Please sign in to comment.