From df86cf2a82a8845a66c18820f2d06fdbcbfda5cd Mon Sep 17 00:00:00 2001 From: Osman Abdelnasir Date: Wed, 11 May 2022 21:12:57 +0400 Subject: [PATCH] fix: specify `currentAccount.accountId` as `useEffect` dependency Co-authored-by: Morgan McCauley --- packages/frontend/src/components/staking/StakingContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/components/staking/StakingContainer.js b/packages/frontend/src/components/staking/StakingContainer.js index ea9e491f3d..853c592cf1 100644 --- a/packages/frontend/src/components/staking/StakingContainer.js +++ b/packages/frontend/src/components/staking/StakingContainer.js @@ -215,7 +215,7 @@ export function StakingContainer({ history, match }) { validators .filter((validator) => validator.version === FARMING_VALIDATOR_VERSION) .forEach((validator) => dispatch(getValidatorFarmData(validator, currentAccount.accountId))); - }, [currentAccount, validators]); + }, [currentAccount.accountId, validators]); const handleAction = async (action, validator, amount) => { let id = Mixpanel.get_distinct_id();