From 7040ce0da09d5c36bd35ce1a6aa3cf4eb29542ee Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 11 Jul 2023 12:57:52 -0400 Subject: [PATCH] fix Dispute.getRoleString() with opener context --- .../main/java/haveno/core/support/dispute/Dispute.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/haveno/core/support/dispute/Dispute.java b/core/src/main/java/haveno/core/support/dispute/Dispute.java index ade2234f..287b94ad 100644 --- a/core/src/main/java/haveno/core/support/dispute/Dispute.java +++ b/core/src/main/java/haveno/core/support/dispute/Dispute.java @@ -479,14 +479,14 @@ public final class Dispute implements NetworkPayload, PersistablePayload { public String getRoleString() { if (disputeOpenerIsMaker) { if (disputeOpenerIsBuyer) - return Res.get("support.buyerMaker"); + return Res.get(isOpener() ? "support.buyerMaker" : "support.sellerTaker"); else - return Res.get("support.sellerMaker"); + return Res.get(isOpener() ? "support.sellerMaker" : "support.buyerTaker"); } else { if (disputeOpenerIsBuyer) - return Res.get("support.buyerTaker"); + return Res.get(isOpener() ? "support.buyerTaker" : "support.sellerMaker"); else - return Res.get("support.sellerTaker"); + return Res.get(isOpener() ? "support.sellerTaker" : "support.buyerMaker"); } }