fix(@desktop/wallet): Send tag in SendModal doesn't show correct value

fixes #14448
This commit is contained in:
Khushboo Mehta 2024-05-06 11:58:12 +02:00 committed by Khushboo-dev-cpp
parent 8d8268db2f
commit bc1aa3b934
4 changed files with 6 additions and 8 deletions

View File

@ -466,7 +466,7 @@ StatusDialog {
store: popup.store store: popup.store
interactive: popup.interactive interactive: popup.interactive
selectedAccount: popup.preSelectedAccount selectedRecipient: recipientLoader.selectedRecipient
ensAddressOrEmpty: recipientLoader.resolvedENSAddress ensAddressOrEmpty: recipientLoader.resolvedENSAddress
amountToSend: amountToSendInput.cryptoValueToSendFloat amountToSend: amountToSendInput.cryptoValueToSendFloat
minSendCryptoDecimals: amountToSendInput.minSendCryptoDecimals minSendCryptoDecimals: amountToSendInput.minSendCryptoDecimals

View File

@ -17,7 +17,7 @@ Item {
property var store property var store
property var currencyStore : store.currencyStore property var currencyStore : store.currencyStore
property var selectedAccount property var selectedRecipient
property string ensAddressOrEmpty: "" property string ensAddressOrEmpty: ""
property var selectedAsset property var selectedAsset
property double amountToSend property double amountToSend
@ -84,7 +84,6 @@ Item {
minReceiveCryptoDecimals: root.minReceiveCryptoDecimals minReceiveCryptoDecimals: root.minReceiveCryptoDecimals
isLoading: root.isLoading isLoading: root.isLoading
store: root.store store: root.store
selectedAccount: root.selectedAccount
errorMode: root.errorMode errorMode: root.errorMode
errorType: root.errorType errorType: root.errorType
toNetworksList: root.toNetworksList toNetworksList: root.toNetworksList
@ -113,7 +112,7 @@ Item {
anchors.margins: Style.current.padding anchors.margins: Style.current.padding
store: root.store store: root.store
customMode: tabBar.currentIndex === 2 customMode: tabBar.currentIndex === 2
selectedAccount: root.selectedAccount selectedRecipient: root.selectedRecipient
ensAddressOrEmpty: root.ensAddressOrEmpty ensAddressOrEmpty: root.ensAddressOrEmpty
amountToSend: root.amountToSend amountToSend: root.amountToSend
minSendCryptoDecimals: root.minSendCryptoDecimals minSendCryptoDecimals: root.minSendCryptoDecimals

View File

@ -16,7 +16,7 @@ ColumnLayout {
id: root id: root
property var store property var store
property var selectedAccount property var selectedRecipient
property string ensAddressOrEmpty: "" property string ensAddressOrEmpty: ""
property double amountToSend property double amountToSend
property int minSendCryptoDecimals: 0 property int minSendCryptoDecimals: 0
@ -89,8 +89,8 @@ ColumnLayout {
sourceComponent: NetworkCardsComponent { sourceComponent: NetworkCardsComponent {
store: root.store store: root.store
receiverIdentityText: root.ensAddressOrEmpty.length > 0 ? receiverIdentityText: root.ensAddressOrEmpty.length > 0 ?
root.ensAddressOrEmpty : !!root.selectedAccount ? root.ensAddressOrEmpty : !!root.selectedRecipient ?
StatusQUtils.Utils.elideText(root.selectedAccount.address, 6, 4).toUpperCase() : "" StatusQUtils.Utils.elideText(root.selectedRecipient.address, 6, 4).toUpperCase() : ""
amountToSend: root.amountToSend amountToSend: root.amountToSend
minSendCryptoDecimals: root.minSendCryptoDecimals minSendCryptoDecimals: root.minSendCryptoDecimals
minReceiveCryptoDecimals: root.minReceiveCryptoDecimals minReceiveCryptoDecimals: root.minReceiveCryptoDecimals

View File

@ -20,7 +20,6 @@ RowLayout {
property bool isLoading: false property bool isLoading: false
property bool isBridgeTx: false property bool isBridgeTx: false
property bool isCollectiblesTransfer: false property bool isCollectiblesTransfer: false
property var selectedAccount
property var toNetworksList property var toNetworksList
property var weiToEth: function(wei) {} property var weiToEth: function(wei) {}
property var formatCurrencyAmount: function () {} property var formatCurrencyAmount: function () {}