Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only show network picker if app not in safe mode #1343

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading