Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TopETH committed Aug 8, 2024
1 parent e4b9ca9 commit ff7b470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/StakingCalculator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function StakingCalculator({

useEffect(() => {
if (validator) setResult(calcReturn(validator));
}, [validator]);
}, [JSON.stringify(validator), JSON.stringify(movingAvg)]);

const calcValidatorsForTable = () => {
const newValis = [];
Expand All @@ -205,7 +205,7 @@ function StakingCalculator({

useEffect(() => {
calcValidatorsForTable();
}, [validators]);
}, [JSON.stringify(validators), JSON.stringify(movingAvg)]);

return (
<div>
Expand Down

0 comments on commit ff7b470

Please sign in to comment.