Skip to content

Commit 3385939

Browse files
[fix] fix connect wallet with disableModal flag
1 parent 09df2e1 commit 3385939

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.2.9",
3+
"version": "2.2.10",
44
"scripts": {
55
"build": "rollup -c",
66
"dev": "rollup -c -w",

packages/core/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export type {
4242
} from './types'
4343

4444
export type { EIP1193Provider } from '@web3-onboard/common'
45+
export { connectWallet$ } from './streams'
4546

4647
function init(options: InitOptions): OnboardAPI {
4748
if (typeof window === 'undefined') return API

packages/core/src/views/connect/Index.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@
192192
connectionRejected = true
193193
if (autoSelect) {
194194
walletToAutoSelect = null
195+
196+
if (autoSelect.disableModals) {
197+
connectWallet$.next({ inProgress: false })
198+
}
195199
}
196200
return
197201
}

0 commit comments

Comments
 (0)