From e494de162d392725632bf34d8f2adbb8c8bf4844 Mon Sep 17 00:00:00 2001 From: BtcContributor <79100296+BtcContributor@users.noreply.github.com> Date: Wed, 24 Feb 2021 23:08:27 +0100 Subject: [PATCH] fix bankid leak --- .../main/overlays/windows/OfferDetailsWindow.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/desktop/src/main/java/bisq/desktop/main/overlays/windows/OfferDetailsWindow.java b/desktop/src/main/java/bisq/desktop/main/overlays/windows/OfferDetailsWindow.java index 64ecb798bb5..2468f6e1524 100644 --- a/desktop/src/main/java/bisq/desktop/main/overlays/windows/OfferDetailsWindow.java +++ b/desktop/src/main/java/bisq/desktop/main/overlays/windows/OfferDetailsWindow.java @@ -253,21 +253,20 @@ private void addContent() { addConfirmationLabelLabel(gridPane, ++rowIndex, Res.get("offerDetailsWindow.myTradingAccount"), myPaymentAccount.getAccountName()); } else { final String method = Res.get(paymentMethod.getId()); - String methodWithBankId = method + bankId; String paymentMethodLabel = Res.get("shared.paymentMethod"); if (countryCode != null && (isNationalBanks || isSpecificBanks || isSepa)) { if (BankUtil.isBankIdRequired(countryCode)) addConfirmationLabelLabel(gridPane, ++rowIndex, - paymentMethodLabel + " " + Res.get("offerDetailsWindow.offererBankId"), - methodWithBankId); + paymentMethodLabel, + method); else if (BankUtil.isBankNameRequired(countryCode)) addConfirmationLabelLabel(gridPane, ++rowIndex, - paymentMethodLabel + " " + Res.get("offerDetailsWindow.offerersBankName"), - methodWithBankId); + paymentMethodLabel, + method); } else if (paymentMethod.equals(PaymentMethod.CASH_DEPOSIT)) { addConfirmationLabelLabel(gridPane, ++rowIndex, - paymentMethodLabel + " " + Res.get("offerDetailsWindow.offererBankId"), - methodWithBankId); + paymentMethodLabel, + method); } else { addConfirmationLabelLabel(gridPane, ++rowIndex, Res.get("shared.paymentMethod"), method); }