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

Fixed Ledger login #1321

Merged
merged 14 commits into from
Nov 27, 2024
Merged

Fixed Ledger login #1321

merged 14 commits into from
Nov 27, 2024

Conversation

razvantomegea
Copy link
Contributor

@razvantomegea razvantomegea commented Nov 26, 2024

Issue

Ledger login with USB no longer works. Instant error occurs and only after multiple clicks it works

Root cause

The ledger account is no longer cleared when error occurs because the provider init failed. The accounts are fetched without an intialised provider, so, it fails instantly. Many race conditions occur.

Fix

Wait for the Ledger/HW provider to be initialized on component mount and fetch the accounts otherwise.
Continue the regular login after this and show errors only if the loading state is true (loading state means the user started to login)

@arhtudormorar
Copy link
Contributor

maybe add PR description

# Conflicts:
#	CHANGELOG.md
#	src/components/ProviderInitializer/ProviderInitializer.tsx
@razvantomegea razvantomegea merged commit e8d743b into development Nov 27, 2024
1 check passed
@razvantomegea razvantomegea deleted the rt/fix/ledger-lgoin branch November 27, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants