Skip to content

Commit

Permalink
Fix input breaks after dot (#85)
Browse files Browse the repository at this point in the history
* fix: input breaks after dot

* chore: remove prints
  • Loading branch information
b-avb authored Aug 19, 2024
1 parent 1880a70 commit 69a210c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/molecules/actions/voting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub fn VotingAction(props: VotingProps) -> Element {
key: "None".to_string(),
value: "None".to_string(),
}),
input: if vote.balance / KUSAMA_PRECISION_DECIMALS > 0 { (vote.balance / KUSAMA_PRECISION_DECIMALS).to_string() } else { String::new() },
input: if vote.balance > 0 { (vote.balance as f64 / KUSAMA_PRECISION_DECIMALS as f64).to_string() } else { String::new() },
},
placeholder: translate!(i18, "initiative.steps.actions.voting_open_gov.standard.balance"),
right_text: {
Expand Down

0 comments on commit 69a210c

Please sign in to comment.