Skip to content

Commit

Permalink
Merge pull request #1518 from decentdao/bug/freeze-dao-state-update
Browse files Browse the repository at this point in the history
Fix freeze button state bug
  • Loading branch information
DarksightKellar authored Apr 5, 2024
2 parents 20b4ba3 + a1612b7 commit b1a0de1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/DAO/loaders/useFractalFreeze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ export const useFractalFreeze = ({
guardContracts.freezeVotingType !== null &&
!!guardContracts.freezeVotingContractAddress &&
loadOnMount &&
guardContracts.freezeVotingContractAddress + parentSafeAddress !== loadKey.current
guardContracts.freezeVotingContractAddress + parentSafeAddress + account !== loadKey.current
) {
setFractalFreezeGuard(guardContracts);
loadKey.current = guardContracts.freezeVotingContractAddress + parentSafeAddress;
loadKey.current = guardContracts.freezeVotingContractAddress + parentSafeAddress + account;
}
if (!parentSafeAddress) {
loadKey.current = undefined;
}
}, [setFractalFreezeGuard, guardContracts, parentSafeAddress, loadOnMount]);
}, [setFractalFreezeGuard, guardContracts, parentSafeAddress, loadOnMount, account]);

useEffect(() => {
const { freezeVotingContractAddress, freezeVotingType: freezeVotingType } = guardContracts;
Expand Down

0 comments on commit b1a0de1

Please sign in to comment.