mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Show zero BSQ transferred for BTC withdrawal form BSQ wallet
This commit is contained in:
parent
79376f3faf
commit
dda54f8b64
@ -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("");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user