Skip to content

Commit 0603a20

Browse files
committed
Merge in latest develop
2 parents c422e66 + 361fa2a commit 0603a20

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

packages/core/src/index.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,6 @@ function init(options: InitOptions): OnboardAPI {
167167
}
168168
}
169169

170-
if (!apiKey || !notifyUpdate.enabled) {
171-
notifyUpdate.enabled = false
172-
}
173-
174170
updateNotify(notifyUpdate)
175171
} else {
176172
const error = validateNotify(notify as Notify)
@@ -184,19 +180,11 @@ function init(options: InitOptions): OnboardAPI {
184180
...notify
185181
}
186182

187-
if (!apiKey || !notifyUpdate.enabled) {
188-
notifyUpdate.enabled = false
189-
}
190-
191183
updateNotify(notifyUpdate)
192184
}
193185
} else {
194186
const notifyUpdate: Partial<Notify> = APP_INITIAL_STATE.notify
195187

196-
if (!apiKey) {
197-
notifyUpdate.enabled = false
198-
}
199-
200188
updateNotify(notifyUpdate)
201189
}
202190

packages/core/src/views/Index.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
(!$accountCenter$.enabled ||
7777
($notify$.position !== $accountCenter$.position &&
7878
device.type !== 'mobile') ||
79-
separateMobileContainerCheck) &&
80-
$wallets$.length
79+
separateMobileContainerCheck ||
80+
!$wallets$.length)
8181
8282
$: displayAccountCenterSeparate =
8383
$accountCenter$.enabled &&

packages/dcent/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ function dcent({
108108
currentChain =
109109
chains.find(({ id }: Chain) => id === chainId) || currentChain
110110

111-
const provider = new StaticJsonRpcProvider(currentChain.rpcUrl)
111+
const provider = new StaticJsonRpcProvider(
112+
currentChain.rpcUrl
113+
) as providers.StaticJsonRpcProvider
112114

113115
return generateAccounts(dcentKeyring, provider)
114116
}

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"typescript": "^4.5.5"
6363
},
6464
"dependencies": {
65-
"@web3-onboard/core": "^2.8.0",
65+
"@web3-onboard/core": "^2.8.1",
6666
"@web3-onboard/common": "^2.2.1",
6767
"use-sync-external-store": "1.0.0"
6868
},

packages/vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@vueuse/core": "^8.4.2",
6464
"@vueuse/rxjs": "^8.2.0",
6565
"@web3-onboard/common": "^2.2.1",
66-
"@web3-onboard/core": "^2.8.0",
66+
"@web3-onboard/core": "^2.8.1",
6767
"vue-demi": "^0.12.4"
6868
},
6969
"peerDependencies": {

0 commit comments

Comments
 (0)