Skip to content

Commit

Permalink
Fix mutilple constitutionaly proposal tabs (#4350)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrlschwb committed Apr 21, 2023
1 parent 5a4e127 commit 2e24146
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions packages/ui/src/app/pages/Proposals/ProposalPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,17 @@ export const ProposalPreview = () => {
</BadgeAndTime>
</RowGapBlock>

{(proposal.status === 'dormant' || votingRounds.length > 1) && (
<ProposalStages
status={proposal.status}
updates={proposal.proposalStatusUpdates}
constitutionality={constants?.constitutionality}
value={currentVotingRound}
onChange={setVotingRound}
/>
)}
{constants?.constitutionality
? constants?.constitutionality > 1 && (
<ProposalStages
status={proposal.status}
updates={proposal.proposalStatusUpdates}
constitutionality={constants?.constitutionality}
value={currentVotingRound}
onChange={setVotingRound}
/>
)
: ''}
</PageHeaderWrapper>
}
main={
Expand Down

2 comments on commit 2e24146

@vercel
Copy link

@vercel vercel bot commented on 2e24146 Apr 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 2e24146 Apr 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pioneer-2 – ./

pioneer-2-git-dev-joystream.vercel.app
pioneer-2.vercel.app
pioneer-2-joystream.vercel.app

Please sign in to comment.