Skip to content

Commit

Permalink
Merge pull request #1343 from drips-network/mhgbrown-1330-hide-networ…
Browse files Browse the repository at this point in the history
…k-picker-in-safe-mode

Only show network picker if app not in safe mode
  • Loading branch information
mhgbrown authored Nov 8, 2024
2 parents b306ff6 + 2c90588 commit 6e5b6ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/components/header/header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -50,6 +51,7 @@
let networkPickerExpanded = false;
$: connected = $walletStore.connected;
$: safeAppMode = Boolean($wallet.safe);
</script>

<header class:elevated class:search-mode={searchMode}>
Expand Down Expand Up @@ -107,7 +109,7 @@
</a>
{/if}

{#if network.displayNetworkPicker}
{#if network.displayNetworkPicker && !safeAppMode}
<div class="network-picker">
<div class="desktop-only">
<div class="network-picker-flyout">
Expand Down

0 comments on commit 6e5b6ee

Please sign in to comment.