Skip to content

Commit

Permalink
Merge pull request #1039 from PrimeDAO/fix/deal_votes_text_copy_for_u…
Browse files Browse the repository at this point in the history
…nauth_users

changed the text copy for unauthenticated users on the deal voting section
  • Loading branch information
hiaux0 authored May 30, 2022
2 parents ec49a08 + 6c1d177 commit 04b8718
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/dealDashboard/dealVotes/dealVotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,19 @@ export class DealVotes {
voteText: "Voting is closed. You can find the voting history below.",
statusText: "Token Swap Failed",
},
{
condition: () => !this.deal.majorityHasVoted && !this.deal.isAuthenticatedRepresentativeUser && !this.deal.isAuthenticatedProposalLead,
voteText: "Waiting for the representatives to vote",
statusText: "Voting is progress",
},
{
condition: () => !this.deal.majorityHasVoted && this.deal.isAuthenticatedRepresentativeUser && this.deal.hasRepresentativeVoted && !this.deal.isAuthenticatedProposalLead,
voteText: "You have cast your vote. Please wait for other representatives to cast theirs. You are able to change your vote before the funding phase is initiated. Once the deal is approved, the Proposal Lead will initiate the funding phase",
statusText: "Voting in progress",
},
{
condition: () => !this.deal.majorityHasVoted && this.deal.isAuthenticatedRepresentativeUser && !this.deal.hasRepresentativeVoted && !this.deal.isAuthenticatedProposalLead,
voteText: "The deal will be approved once the majority has voted in favor. Once the deal is approved, the Proposal Lead will initiate the funding phase",
condition: () => !this.deal.majorityHasVoted && this.deal.isAuthenticatedProposalLead,
voteText: "The deal will be approved once the majority has voted in favor. Once the deal is approved, you can initiate the funding phase",
statusText: "Voting in progress",
},
{
condition: () => !this.deal.majorityHasVoted && this.deal.isAuthenticatedProposalLead,
voteText: "The deal will be approved once the majority has voted in favor. Once the deal is approved, you can initiate the funding phase",
condition: () => !this.deal.majorityHasVoted,
voteText: "The deal will be approved once the majority has voted in favor. Once the deal is approved, the Proposal Lead will initiate the funding phase",
statusText: "Voting in progress",
},
{
Expand Down

0 comments on commit 04b8718

Please sign in to comment.