Skip to content

Commit

Permalink
log sentry if no strategy found
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Mar 15, 2024
1 parent 0d55be3 commit eaa5b7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hooks/DAO/loaders/governance/useAzoriusProposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { VotedEvent as ERC20VotedEvent } from '@fractal-framework/fractal-contra
import { VotedEvent as ERC721VotedEvent } from '@fractal-framework/fractal-contracts/dist/typechain-types/contracts/azorius/LinearERC721Voting';
import { BigNumber } from 'ethers';
import { useCallback, useEffect, useMemo } from 'react';
import { logError } from '../../../../helpers/errorLogging';
import { useFractal } from '../../../../providers/App/AppProvider';
import { FractalGovernanceAction } from '../../../../providers/App/governance/action';
import { useEthersProvider } from '../../../../providers/Ethers/hooks/useEthersProvider';
Expand Down Expand Up @@ -73,7 +74,7 @@ export const useAzoriusProposals = () => {
erc721LinearVotingContractAddress,
);
} else {
console.error('No strategy contract found');
logError('No strategy contract found');
return [];
}

Expand Down Expand Up @@ -151,7 +152,7 @@ export const useAzoriusProposals = () => {
strategyContract =
baseContracts.linearVotingMasterCopyContract.asProvider.attach(strategyAddress);
} else {
console.error('No strategy contract found');
logError('No strategy contract found');
return [];
}
const func = async () => {
Expand Down

0 comments on commit eaa5b7e

Please sign in to comment.