This commit is contained in:
Craig Raw 2024-01-09 11:59:19 +02:00
parent 04c8017bb5
commit 20df1dbd8b

View file

@ -487,7 +487,7 @@ public class SendController extends WalletFormController implements Initializabl
} }
public Tab getPaymentTab() { public Tab getPaymentTab() {
s OptionalInt highestTabNo = paymentTabs.getTabs().stream().mapToInt(tab -> Integer.parseInt(tab.getText().trim())).max(); OptionalInt highestTabNo = paymentTabs.getTabs().stream().mapToInt(tab -> Integer.parseInt(tab.getText().trim())).max();
Tab tab = new Tab(" " + (highestTabNo.isPresent() ? highestTabNo.getAsInt() + 1 : 1) + " "); Tab tab = new Tab(" " + (highestTabNo.isPresent() ? highestTabNo.getAsInt() + 1 : 1) + " ");
try { try {