fix(wallet): Show amount for mint activity (#15611)
This commit is contained in:
parent
30b88377c2
commit
408073c7d2
|
@ -98,7 +98,12 @@ StatusListItem {
|
||||||
if (!isModelDataValid) {
|
if (!isModelDataValid) {
|
||||||
return qsTr("N/A")
|
return qsTr("N/A")
|
||||||
} else if (root.isNFT) {
|
} 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) {
|
} else if (!modelData.symbol && !!modelData.tokenAddress) {
|
||||||
return "%1 (%2)".arg(root.rootStore.formatCurrencyAmount(cryptoValue, "")).arg(Utils.compactAddress(modelData.tokenAddress, 4))
|
return "%1 (%2)".arg(root.rootStore.formatCurrencyAmount(cryptoValue, "")).arg(Utils.compactAddress(modelData.tokenAddress, 4))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue