Skip to content

Commit

Permalink
fix manage support button disable state
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati0x committed Dec 7, 2024
1 parent 6dd634e commit f5fe1e6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/web/components/Proposals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export function Proposals({
const disableManageSupportBtnCondition: ConditionObject[] = [
{
condition: !memberActivatedStrategy,
message: "Must have points activated to support proposals",
message: "You need to activate your governance first",
},
{
condition: !isAllowed,
Expand Down Expand Up @@ -446,6 +446,7 @@ export function Proposals({
const isEndedProposalActiveAllocation = endedProposals.some(
(x) => stakedFilters[x.id]?.value,
);

// Render
return (
<>
Expand All @@ -472,7 +473,12 @@ export function Proposals({
<AdjustmentsHorizontalIcon height={24} width={24} />
}
onClick={() => setAllocationView((prev) => !prev)}
disabled={!isConnected || missmatchUrl || !isAllowed}
disabled={
!isConnected ||
missmatchUrl ||
!memberActivatedStrategy ||
!isAllowed
}
tooltip={tooltipMessage}
>
Manage support
Expand Down

0 comments on commit f5fe1e6

Please sign in to comment.