Updated on 2026-08-14

This commit is contained in:
Tangem 2018-10-19 13:34:18 +03:00
parent e1999ed34f
commit 2ba21aab5c
5 changed files with 25 additions and 9 deletions

View file

@ -290,10 +290,10 @@ public class BtcCashEngine extends CoinEngine {
}
public static String getAmountEquivalentDescriptionBTC(Double amount, float rate) {
if (rate > 0) {
if ((rate > 0) && (amount > 0)) {
return String.format("USD%.2f", amount * rate);
} else {
return "USD ---";
return "";
}
}