mirror of
https://github.com/boldsuck/haveno.git
synced 2025-01-10 18:14:30 +00:00
fix Dispute.getRoleString() with opener context
This commit is contained in:
parent
5c6ef41511
commit
7040ce0da0
1 changed files with 4 additions and 4 deletions
|
@ -479,14 +479,14 @@ public final class Dispute implements NetworkPayload, PersistablePayload {
|
||||||
public String getRoleString() {
|
public String getRoleString() {
|
||||||
if (disputeOpenerIsMaker) {
|
if (disputeOpenerIsMaker) {
|
||||||
if (disputeOpenerIsBuyer)
|
if (disputeOpenerIsBuyer)
|
||||||
return Res.get("support.buyerMaker");
|
return Res.get(isOpener() ? "support.buyerMaker" : "support.sellerTaker");
|
||||||
else
|
else
|
||||||
return Res.get("support.sellerMaker");
|
return Res.get(isOpener() ? "support.sellerMaker" : "support.buyerTaker");
|
||||||
} else {
|
} else {
|
||||||
if (disputeOpenerIsBuyer)
|
if (disputeOpenerIsBuyer)
|
||||||
return Res.get("support.buyerTaker");
|
return Res.get(isOpener() ? "support.buyerTaker" : "support.sellerMaker");
|
||||||
else
|
else
|
||||||
return Res.get("support.sellerTaker");
|
return Res.get(isOpener() ? "support.sellerTaker" : "support.buyerMaker");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue