Merge pull request #5358 from jmacxx/fix_ClassCastException

Fix ClassCastException in Portfolio History screen
This commit is contained in:
Christoph Atteneder 2021-03-26 08:48:19 +01:00 committed by GitHub
commit c0cfd25f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,7 @@ public class ClosedTradesViewModel extends ActivatableWithDataModel<ClosedTrades
Tradable tradable = item.getTradable();
Offer offer = tradable.getOffer();
if (wasMyOffer(tradable)) {
if (wasMyOffer(tradable) || tradable instanceof OpenOffer) {
CoinFormatter formatter = offer.isCurrencyForMakerFeeBtc() ? btcFormatter : bsqFormatter;
return formatter.formatCoin(offer.getMakerFee(), appendCode);
} else {