mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
Merchant: fix confirmations
This commit is contained in:
parent
3af99e91e4
commit
2102e4be0d
1 changed files with 3 additions and 7 deletions
|
@ -593,7 +593,6 @@ Item {
|
|||
var model = appWindow.currentWallet.historyModel
|
||||
var count = model.rowCount()
|
||||
var nTransactions = 0
|
||||
var blockchainHeight = null
|
||||
var txs = []
|
||||
|
||||
// Currently selected subaddress as per Receive page
|
||||
|
@ -616,15 +615,12 @@ Item {
|
|||
|
||||
var in_txpool = false;
|
||||
var confirmations = 0;
|
||||
var displayAmount = 0;
|
||||
var displayAmount = model.data(idx, TransactionHistoryModel.TransactionDisplayAmountRole);
|
||||
|
||||
if (blockHeight == 0) {
|
||||
if (blockHeight === undefined) {
|
||||
in_txpool = true;
|
||||
} else {
|
||||
if (blockchainHeight == null)
|
||||
blockchainHeight = walletManager.blockchainHeight()
|
||||
confirmations = blockchainHeight - blockHeight - 1
|
||||
displayAmount = model.data(idx, TransactionHistoryModel.TransactionDisplayAmountRole);
|
||||
confirmations = model.data(idx, TransactionHistoryModel.TransactionConfirmationsRole);
|
||||
}
|
||||
|
||||
txs.push({
|
||||
|
|
Loading…
Reference in a new issue