Skip to content

Commit 6305261

Browse files
authored
[core: 2.3.2-alpha.4]: [fix] - Recommended Injected Wallets (#1115)
* Fixes recommended injected wallets * Remove unecessary check
1 parent 8d32be4 commit 6305261

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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.3.2-alpha.3",
3+
"version": "2.3.2-alpha.4",
44
"repository": "blocknative/web3-onboard",
55
"scripts": {
66
"build": "rollup -c",

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
let scrollContainer: HTMLElement
5353
5454
let walletToAutoSelect =
55-
autoSelect &&
55+
autoSelect.label &&
5656
walletModules.find(
5757
({ label }) => label.toLowerCase() === autoSelect.label.toLowerCase()
5858
)
@@ -209,7 +209,7 @@
209209
// user rejected account access
210210
if (code === ProviderRpcErrorCode.ACCOUNT_ACCESS_REJECTED) {
211211
connectionRejected = true
212-
if (autoSelect) {
212+
if (walletToAutoSelect) {
213213
walletToAutoSelect = null
214214
215215
if (autoSelect.disableModals) {
@@ -360,7 +360,7 @@
360360

361361
<svelte:window bind:innerWidth={windowWidth} />
362362

363-
{#if !autoSelect || (autoSelect && !autoSelect.disableModals)}
363+
{#if !autoSelect.disableModals}
364364
<Modal {close}>
365365
<div class="container relative flex">
366366
{#if windowWidth >= 809}
@@ -396,7 +396,7 @@
396396
{connectingErrorMessage}
397397
/>
398398
</div>
399-
{:else if !autoSelect}
399+
{:else}
400400
<InstallWallet />
401401
{/if}
402402
{/if}

0 commit comments

Comments
 (0)