From 2c90588b8303a28b328ad8de5988d74654ce5c86 Mon Sep 17 00:00:00 2001 From: Morgan Brown Date: Thu, 7 Nov 2024 14:53:33 +0100 Subject: [PATCH] Only show network picker if app not in safe mode --- src/lib/components/header/header.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/header/header.svelte b/src/lib/components/header/header.svelte index 64a2ccb4c..e91effe37 100644 --- a/src/lib/components/header/header.svelte +++ b/src/lib/components/header/header.svelte @@ -35,6 +35,7 @@ import cupertinoPaneStore from '$lib/stores/cupertino-pane/cupertino-pane.store'; import filterCurrentChainData from '$lib/utils/filter-current-chain-data'; import network from '$lib/stores/wallet/network'; + import wallet from '$lib/stores/wallet/wallet.store'; export let user: HeaderUserFragment | null; @@ -50,6 +51,7 @@ let networkPickerExpanded = false; $: connected = $walletStore.connected; + $: safeAppMode = Boolean($wallet.safe);
@@ -107,7 +109,7 @@ {/if} - {#if network.displayNetworkPicker} + {#if network.displayNetworkPicker && !safeAppMode}