fix Dispute.getRoleString() with opener context
This commit is contained in:
parent
5c6ef41511
commit
7040ce0da0
@ -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 New Issue
Block a user