[bisq-network/bisq] Only use InputValidation when formatting voting stake (#4090)

Christoph Atteneder notifications at github.com
Thu Mar 26 15:31:53 UTC 2020


@ripcurlx commented on this pull request.



> @@ -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());

No the validator there is fine. Just after submitting the vote the value entered is formatted with `BSQ` in the end which causes the original validator to fail. I think it is good that it is formatted with the code in this case so I didn't remove the formatting, but decided to adapt the validator.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4090#discussion_r398666318
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200326/7823ce96/attachment-0001.html>


More information about the bisq-github mailing list