Skip to content

Commit

Permalink
Merge pull request #4625 from chimp1984/only-showXmrAutoConf-for-sell…
Browse files Browse the repository at this point in the history
…-offers

Only show xmr auto conf label for sell offers
  • Loading branch information
ripcurlx authored Oct 12, 2020
2 parents 1eb730a + db10aa3 commit ee14884
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ private void addContent() {
if (isF2F)
rows += 2;

if (offer.isXmr()) {
boolean showXmrAutoConf = offer.isXmr() && offer.getDirection() == OfferPayload.Direction.SELL;
if (showXmrAutoConf) {
rows++;
}

Expand Down Expand Up @@ -262,7 +263,7 @@ else if (BankUtil.isBankNameRequired(countryCode))
}
}

if (offer.isXmr()) {
if (showXmrAutoConf) {
String isAutoConf = offer.isXmrAutoConf() ?
Res.get("shared.yes") :
Res.get("shared.no");
Expand Down

0 comments on commit ee14884

Please sign in to comment.