Skip to content

Commit f05f627

Browse files
authored
Fix button text for no voting weight in create proposal and proposal (#683)
* Fix lite proposal status Signed-off-by: Manank Patni <[email protected]> * Fix button text for no voting weight Signed-off-by: Manank Patni <[email protected]> --------- Signed-off-by: Manank Patni <[email protected]>
1 parent 8cc6f8f commit f05f627

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modules/lite/explorer/components/Choices.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export const Choices: React.FC<any> = ({ choices, submitForm, isLoading, votingS
193193
<Grid container style={{ gap: 10, marginTop: 31 }}>
194194
{!isLoading ? (
195195
<MainButton disabled={!canCreateProposal} variant="contained" color="secondary" onClick={submitForm}>
196-
Create Proposal
196+
{canCreateProposal ? "Create Proposal" : "No Voting Weight"}
197197
</MainButton>
198198
) : (
199199
<CircularProgress color="secondary" />

src/modules/lite/explorer/pages/ProposalDetails/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export const ProposalDetails: React.FC<{ id: string }> = ({ id }) => {
165165
color="secondary"
166166
onClick={() => saveVote()}
167167
>
168-
Cast your vote
168+
{voteWeight?.gt(new BigNumber(0)) ? "Cast your vote" : "No Voting Weight"}
169169
</Button>
170170
) : null}
171171
</GridContainer>

0 commit comments

Comments
 (0)