diff --git a/packages/bridge-ui/src/components/ChainSelectors/ChainPill/ChainPill.svelte b/packages/bridge-ui/src/components/ChainSelectors/ChainPill/ChainPill.svelte index 1276537ccd8..4b9c7289781 100644 --- a/packages/bridge-ui/src/components/ChainSelectors/ChainPill/ChainPill.svelte +++ b/packages/bridge-ui/src/components/ChainSelectors/ChainPill/ChainPill.svelte @@ -9,6 +9,7 @@ import { classNames } from '$libs/util/classNames'; import { truncateString } from '$libs/util/truncateString'; import { uid } from '$libs/util/uid'; + import { account } from '$stores'; export let value: Maybe | null = null; export let label = ''; @@ -34,6 +35,8 @@ modalOpen = true; } }; + + $: disabled = !$account || !$account.isConnected || readOnly;
@@ -44,7 +47,7 @@