Skip to content

Commit

Permalink
remove redundent func call
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Mar 25, 2024
1 parent 881c844 commit 422484b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hooks/DAO/loaders/useProposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ 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();
action.dispatch({
type: FractalGovernanceAction.SET_PROPOSALS,
payload: proposals,
});
clearIntervals();
} else if (type === GovernanceType.MULTISIG) {
// load mulisig proposals
clearIntervals();
setMethodOnInterval(loadSafeMultisigProposals);
}
}, [
Expand Down

0 comments on commit 422484b

Please sign in to comment.