fix(wallet): Show amount for mint activity (#15611)

This commit is contained in:
Cuteivist 2024-07-24 21:19:51 +02:00 committed by GitHub
parent 30b88377c2
commit 408073c7d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -98,7 +98,12 @@ StatusListItem {
if (!isModelDataValid) {
return qsTr("N/A")
} else if (root.isNFT) {
return modelData.nftName ? modelData.nftName : "#" + modelData.tokenID
let value = ""
if (d.txType === Constants.TransactionType.Mint) {
value += modelData.amount + " "
}
value += (modelData.nftName ? modelData.nftName : "#" + modelData.tokenID)
return value
} else if (!modelData.symbol && !!modelData.tokenAddress) {
return "%1 (%2)".arg(root.rootStore.formatCurrencyAmount(cryptoValue, "")).arg(Utils.compactAddress(modelData.tokenAddress, 4))
}