You shouldn't be here. Get out before it's too late.
diff --git a/src/auth.ts b/src/auth.ts index cc458aaa..14364a7b 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -5,7 +5,8 @@ import {get} from 'svelte/store' import {storeAccount} from './stores/account-provider' import {getClient} from './api-client' import {appId, chains} from './config' -import {activeSession, availableSessions} from './store' +import {activeEvmSession, activeSession, availableSessions} from './store' +import {startEvmSession} from './lib/evm' const transport = new Transport({ requestStatus: false, @@ -97,4 +98,9 @@ export async function activate(id: SessionLike) { throw new Error('No such session') } activeSession.set(session) + + if (get(activeEvmSession)) { + activeEvmSession.set(undefined) + startEvmSession() + } } diff --git a/src/components/elements/button.svelte b/src/components/elements/button.svelte index 7a3df3a5..71fde25b 100644 --- a/src/components/elements/button.svelte +++ b/src/components/elements/button.svelte @@ -31,6 +31,7 @@ if (href === undefined) { event.preventDefault() } + if (!formValidation || (!$formDisabled && !disabled)) { dispatch('action', event) } @@ -195,6 +196,7 @@ display: flex; flex-direction: column; align-items: center; + width: 100%; } &.loading { :global(.content .icon:not(.loading)) { diff --git a/src/components/elements/form/transaction.svelte b/src/components/elements/form/transaction.svelte index 266ad9f3..98a67e6d 100644 --- a/src/components/elements/form/transaction.svelte +++ b/src/components/elements/form/transaction.svelte @@ -19,7 +19,7 @@ let error: boolean = false let errorMessage: string = '' let transaction_id = writable