From 74bc695f106c44c789c102ecf6e583eab3d4ebbd Mon Sep 17 00:00:00 2001 From: Cuteivist Date: Wed, 31 Jul 2024 16:02:03 +0200 Subject: [PATCH] chore(wallet): Hide Swap if cannot send (#15918) --- ui/app/AppLayouts/Wallet/panels/WalletFooter.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Wallet/panels/WalletFooter.qml b/ui/app/AppLayouts/Wallet/panels/WalletFooter.qml index 00a317a261..7dae87f5c8 100644 --- a/ui/app/AppLayouts/Wallet/panels/WalletFooter.qml +++ b/ui/app/AppLayouts/Wallet/panels/WalletFooter.qml @@ -71,7 +71,7 @@ Rectangle { readonly property bool buyActionAvailable: !root.isCommunityOwnershipTransfer && !root.walletStore.showAllAccounts - readonly property bool swapActionAvailable: Global.featureFlags.swapEnabled && !walletStore.overview.isWatchOnlyAccount && !d.hideCollectibleTransferActions + readonly property bool swapActionAvailable: Global.featureFlags.swapEnabled && !walletStore.overview.isWatchOnlyAccount && walletStore.overview.canSend && !d.hideCollectibleTransferActions function getFirstUserOwnedAddress(ownershipModel, accountsModel) { if (!ownershipModel) return ""