diff --git a/src/components/molecules/actions/voting.rs b/src/components/molecules/actions/voting.rs index 8049ddb..dd849c8 100644 --- a/src/components/molecules/actions/voting.rs +++ b/src/components/molecules/actions/voting.rs @@ -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: {