From 83d588d374133703b5fd1d10d373ba036d935af4 Mon Sep 17 00:00:00 2001 From: Christoph Atteneder Date: Mon, 23 Mar 2020 11:04:27 +0100 Subject: [PATCH] Only use InputValidation when formatting voting stake --- .../desktop/main/dao/governance/proposals/ProposalsView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/src/main/java/bisq/desktop/main/dao/governance/proposals/ProposalsView.java b/desktop/src/main/java/bisq/desktop/main/dao/governance/proposals/ProposalsView.java index 668e0f22b8c..0e29d026571 100644 --- a/desktop/src/main/java/bisq/desktop/main/dao/governance/proposals/ProposalsView.java +++ b/desktop/src/main/java/bisq/desktop/main/dao/governance/proposals/ProposalsView.java @@ -54,9 +54,10 @@ import bisq.core.locale.Res; import bisq.core.user.Preferences; import bisq.core.util.FormattingUtils; -import bisq.core.util.coin.BsqFormatter; import bisq.core.util.ParsingUtils; +import bisq.core.util.coin.BsqFormatter; import bisq.core.util.coin.CoinFormatter; +import bisq.core.util.validation.InputValidator; import bisq.common.UserThread; import bisq.common.app.DevEnv; @@ -554,6 +555,7 @@ private void updateViews() { if (optionalMyVote.isPresent()) { MyVote myVote = optionalMyVote.get(); Coin stake = Coin.valueOf(myVote.getBlindVote().getStake()); + stakeInputTextField.setValidator(new InputValidator()); stakeInputTextField.setText(bsqFormatter.formatCoinWithCode(stake)); if (myVote.getBlindVoteTxId() != null) {