mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 13:56:10 +00:00
fix(@desktop/general): buying ens usernames/stickers fixed
This commit is contained in:
parent
8abd9c56a1
commit
930d9ef9b7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user