mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Use early return
This commit is contained in:
parent
37ef8c0d85
commit
680dd29100
1 changed files with 63 additions and 61 deletions
|
@ -389,7 +389,10 @@ public class DisputeSummaryWindow extends Overlay<DisputeSummaryWindow> {
|
|||
private void applyCustomAmounts(InputTextField inputTextField, boolean oldFocusValue, boolean newFocusValue) {
|
||||
// We only apply adjustments at focus out, otherwise we cannot enter certain values if we update at each
|
||||
// keystroke.
|
||||
if (oldFocusValue && !newFocusValue) {
|
||||
if (!oldFocusValue || newFocusValue) {
|
||||
return;
|
||||
}
|
||||
|
||||
Contract contract = dispute.getContract();
|
||||
boolean isMediationDispute = getDisputeManager(dispute) instanceof MediationManager;
|
||||
// At mediation we require a min. payout to the losing party to keep incentive for the trader to accept the
|
||||
|
@ -451,7 +454,6 @@ public class DisputeSummaryWindow extends Overlay<DisputeSummaryWindow> {
|
|||
DisputeResult.Winner.BUYER :
|
||||
DisputeResult.Winner.SELLER);
|
||||
}
|
||||
}
|
||||
|
||||
private void addPayoutAmountTextFields() {
|
||||
buyerPayoutAmountInputTextField = new InputTextField();
|
||||
|
|
Loading…
Add table
Reference in a new issue