From bcbf694dd4f00aa0d433b15411e923547217d36a Mon Sep 17 00:00:00 2001 From: vetalcore Date: Fri, 23 Feb 2024 13:03:13 +0200 Subject: [PATCH] fix(extension): reload app on ledger disconnect during onboarding --- .../features/wallet-setup/components/HardwareWalletFlow.tsx | 2 ++ .../src/ui/components/WalletSetup/WalletSetupWalletNameStep.tsx | 1 + 2 files changed, 3 insertions(+) diff --git a/apps/browser-extension-wallet/src/views/browser-view/features/wallet-setup/components/HardwareWalletFlow.tsx b/apps/browser-extension-wallet/src/views/browser-view/features/wallet-setup/components/HardwareWalletFlow.tsx index 558665f97..795b1a01b 100644 --- a/apps/browser-extension-wallet/src/views/browser-view/features/wallet-setup/components/HardwareWalletFlow.tsx +++ b/apps/browser-extension-wallet/src/views/browser-view/features/wallet-setup/components/HardwareWalletFlow.tsx @@ -307,6 +307,8 @@ export const HardwareWalletFlow = ({ const onRetry = () => { setIsErrorDialogVisible(false); goBackToConnect(); + // TODO: Remove this workaround with full app reload when SDK allows to connect Hardware Wallet for the 2nd time. + onAppReload(); }; const handleStartOver = () => { diff --git a/packages/core/src/ui/components/WalletSetup/WalletSetupWalletNameStep.tsx b/packages/core/src/ui/components/WalletSetup/WalletSetupWalletNameStep.tsx index 559f17276..3602d6215 100644 --- a/packages/core/src/ui/components/WalletSetup/WalletSetupWalletNameStep.tsx +++ b/packages/core/src/ui/components/WalletSetup/WalletSetupWalletNameStep.tsx @@ -63,6 +63,7 @@ export const WalletSetupWalletNameStep = ({ label={translations.walletName} value={walletName} onChange={handleNameChange} + autoFocus /> {isDirty && walletName && !isNameValid && (