Skip to content

Commit

Permalink
Merge pull request #4090 from ripcurlx/stake-validation-issue
Browse files Browse the repository at this point in the history
Only use InputValidation when formatting voting stake
  • Loading branch information
sqrrm authored Mar 26, 2020
2 parents 7fd4cb5 + 83d588d commit 427d581
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 427d581

Please sign in to comment.