Show zero BSQ transferred for BTC withdrawal form BSQ wallet

This commit is contained in:
Christoph Atteneder 2019-04-05 17:41:32 +02:00
parent 79376f3faf
commit dda54f8b64
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -501,9 +501,17 @@ public class BsqTxView extends ActivatableView<GridPane, Void> implements BsqBal
super.updateItem(item, empty); super.updateItem(item, empty);
if (item != null && !empty) { if (item != null && !empty) {
TxType txType = item.getTxType(); TxType txType = item.getTxType();
setText(item.getConfirmations() > 0 && isValidType(txType) ?
bsqFormatter.formatCoin(item.getAmount()) : String bsqAmount = Res.get("shared.na");
Res.get("shared.na"));
if (item.getConfirmations() > 0) {
if (isValidType(txType))
bsqAmount = bsqFormatter.formatCoin(item.getAmount());
else if (item.isWithdrawalToBTCWallet())
bsqAmount = bsqFormatter.formatBSQSatoshis(0L);
}
setText(bsqAmount);
} else } else
setText(""); setText("");
} }