From 40f24236fd45bda35ed6672d9ca22e46c096aa24 Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Tue, 15 Oct 2024 23:07:25 +0200 Subject: [PATCH] show enabled only if configured to receive or send (handle client settings wipe) --- wallets/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallets/index.js b/wallets/index.js index 6ef6efbc..9c084e45 100644 --- a/wallets/index.js +++ b/wallets/index.js @@ -51,7 +51,7 @@ function useWalletInner (name) { const [config, saveConfig, clearConfig] = useConfig(walletDef) const available = (!walletDef?.isAvailable || walletDef?.isAvailable()) - const status = config?.enabled && available ? Status.Enabled : Status.Initialized + const status = config?.enabled && available && (config.canSend || config.canReceive) ? Status.Enabled : Status.Initialized const enabled = status === Status.Enabled const priority = config?.priority const hasConfig = walletDef?.fields?.length > 0