Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core: 2.3.2-alpha.4]: [fix] - Recommended Injected Wallets #1115

Merged
merged 2 commits into from
Jun 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/core",
"version": "2.3.2-alpha.3",
"version": "2.3.2-alpha.4",
"repository": "blocknative/web3-onboard",
"scripts": {
"build": "rollup -c",
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/views/connect/Index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
let scrollContainer: HTMLElement

let walletToAutoSelect =
autoSelect &&
autoSelect.label &&
walletModules.find(
({ label }) => label.toLowerCase() === autoSelect.label.toLowerCase()
)
Expand Down Expand Up @@ -209,7 +209,7 @@
// user rejected account access
if (code === ProviderRpcErrorCode.ACCOUNT_ACCESS_REJECTED) {
connectionRejected = true
if (autoSelect) {
if (walletToAutoSelect) {
walletToAutoSelect = null

if (autoSelect.disableModals) {
Expand Down Expand Up @@ -360,7 +360,7 @@

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

{#if !autoSelect || (autoSelect && !autoSelect.disableModals)}
{#if !autoSelect.disableModals}
<Modal {close}>
<div class="container relative flex">
{#if windowWidth >= 809}
Expand Down Expand Up @@ -396,7 +396,7 @@
{connectingErrorMessage}
/>
</div>
{:else if !autoSelect}
{:else}
<InstallWallet />
{/if}
{/if}
Expand Down