fix(@desktop/general): buying ens usernames/stickers fixed

This commit is contained in:
Sale Djenic 2023-11-09 09:21:25 +01:00 committed by saledjenic
parent 8abd9c56a1
commit 930d9ef9b7
1 changed files with 7 additions and 1 deletions

View File

@ -65,6 +65,12 @@ StatusDialog {
QtObject {
id: d
property bool ensOrStickersPurpose: popup.preSelectedSendType === Constants.SendType.ENSRegister ||
popup.preSelectedSendType === Constants.SendType.ENSRelease ||
popup.preSelectedSendType === Constants.SendType.ENSSetPubKey ||
popup.preSelectedSendType === Constants.SendType.StickersBuy
readonly property var currencyStore: store.currencyStore
readonly property int errorType: !amountToSendInput.input.valid && !isERC721Transfer ? Constants.SendAmountExceedsBalance :
(popup.bestRoutes && popup.bestRoutes.count === 0 &&
@ -115,7 +121,7 @@ StatusDialog {
onSelectedHoldingChanged: {
if (d.selectedHoldingType === Constants.HoldingType.Asset) {
if(store.sendType !== Constants.SendType.Bridge)
if(!d.ensOrStickersPurpose && store.sendType !== Constants.SendType.Bridge)
store.setSendType(Constants.SendType.Transfer)
store.setSelectedAssetSymbol(selectedHolding.symbol)
} else if (d.selectedHoldingType === Constants.HoldingType.Collectible) {