From 422484bf4fa560e2d37416593966a8032d336f74 Mon Sep 17 00:00:00 2001 From: David Colon <38386583+Da-Colon@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:24:55 -0400 Subject: [PATCH] remove redundent func call --- src/hooks/DAO/loaders/useProposals.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hooks/DAO/loaders/useProposals.ts b/src/hooks/DAO/loaders/useProposals.ts index 482af484fd..7d487f7c94 100644 --- a/src/hooks/DAO/loaders/useProposals.ts +++ b/src/hooks/DAO/loaders/useProposals.ts @@ -18,6 +18,7 @@ export const useDAOProposals = () => { const loadSafeMultisigProposals = useSafeMultisigProposals(); const loadDAOProposals = useCallback(async () => { + clearIntervals(); if (type === GovernanceType.AZORIUS_ERC20 || type === GovernanceType.AZORIUS_ERC721) { // load Azorius proposals and strategies const proposals = await loadAzoriusProposals(); @@ -25,10 +26,8 @@ export const useDAOProposals = () => { type: FractalGovernanceAction.SET_PROPOSALS, payload: proposals, }); - clearIntervals(); } else if (type === GovernanceType.MULTISIG) { // load mulisig proposals - clearIntervals(); setMethodOnInterval(loadSafeMultisigProposals); } }, [