Skip to content

Commit

Permalink
Merge pull request #6777 from jmacxx/fix_issue_6661
Browse files Browse the repository at this point in the history
Show AmazonGC country in offer book.
  • Loading branch information
alejandrogarcia83 committed Jul 25, 2023
2 parents 5ef7ccd + 53c6b15 commit cbfc68b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/bisq/core/payment/PaymentAccountUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ public static String getCountryCode(PaymentAccount paymentAccount) {
if (paymentAccount instanceof CountryBasedPaymentAccount) {
Country country = (((CountryBasedPaymentAccount) paymentAccount)).getCountry();
return country != null ? country.code : null;
} else if (paymentAccount instanceof AmazonGiftCardAccount) { // GH ISSUE #6661 show Amazon country
Country country = ((AmazonGiftCardAccount) paymentAccount).getCountry();
return country != null ? country.code : null;
}
return null;
}
Expand Down

0 comments on commit cbfc68b

Please sign in to comment.