improve error handling when clones taken at the same time

This commit is contained in:
woodser 2025-04-19 22:28:32 -04:00 committed by GitHub
parent c7a3a9740f
commit cf9a37f295
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 46 additions and 24 deletions

View file

@ -346,8 +346,7 @@ public class DepositView extends ActivatableView<VBox, Void> {
List<XmrAddressEntry> addressEntries = xmrWalletService.getAddressEntries();
List<DepositListItem> items = new ArrayList<>();
for (XmrAddressEntry addressEntry : addressEntries) {
DepositListItem item = new DepositListItem(addressEntry, xmrWalletService, formatter);
if (addressEntry.isTradePayout() && BigInteger.ZERO.equals(item.getBalanceAsBI())) continue; // do not show empty trade payout addresses
if (addressEntry.isTradePayout()) continue; // do not show trade payout addresses
items.add(new DepositListItem(addressEntry, xmrWalletService, formatter));
}