Skip to content

Commit

Permalink
fix freeze showing up when switching DAOs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Mar 28, 2024
1 parent 678d48d commit c3ce724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/pages/DaoDashboard/Activities/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { useActivities } from './hooks/useActivities';

export function Activities() {
const {
guardContracts: { freezeVotingContractAddress },
guard,
governance: { type },
} = useFractal();
Expand All @@ -37,7 +38,7 @@ export function Activities() {
flexDirection="column"
gap="1rem"
>
{guard.freezeProposalVoteCount?.gt(0) && <ActivityFreeze />}
{freezeVotingContractAddress && guard.freezeProposalVoteCount?.gt(0) && <ActivityFreeze />}
{!type ? (
<InfoBoxLoader />
) : sortedActivities.length ? (
Expand Down

0 comments on commit c3ce724

Please sign in to comment.