Skip to content

Commit

Permalink
Fix button text for no voting weight in create proposal and proposal (#…
Browse files Browse the repository at this point in the history
…683)

* Fix lite proposal status

Signed-off-by: Manank Patni <manank321@gmail.com>

* Fix button text for no voting weight

Signed-off-by: Manank Patni <manank321@gmail.com>

---------

Signed-off-by: Manank Patni <manank321@gmail.com>
  • Loading branch information
Man-Jain authored Oct 4, 2023
1 parent 8cc6f8f commit f05f627
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/lite/explorer/components/Choices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export const Choices: React.FC<any> = ({ choices, submitForm, isLoading, votingS
<Grid container style={{ gap: 10, marginTop: 31 }}>
{!isLoading ? (
<MainButton disabled={!canCreateProposal} variant="contained" color="secondary" onClick={submitForm}>
Create Proposal
{canCreateProposal ? "Create Proposal" : "No Voting Weight"}
</MainButton>
) : (
<CircularProgress color="secondary" />
Expand Down
2 changes: 1 addition & 1 deletion src/modules/lite/explorer/pages/ProposalDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const ProposalDetails: React.FC<{ id: string }> = ({ id }) => {
color="secondary"
onClick={() => saveVote()}
>
Cast your vote
{voteWeight?.gt(new BigNumber(0)) ? "Cast your vote" : "No Voting Weight"}
</Button>
) : null}
</GridContainer>
Expand Down

0 comments on commit f05f627

Please sign in to comment.