Skip to content

Commit

Permalink
bugfix(PROTECT-3040): ensure recover webview does not reload on devic…
Browse files Browse the repository at this point in the history
…e disconnect
  • Loading branch information
cksanders committed May 2, 2024
1 parent 3498ae5 commit d4b897f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-garlics-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Ensure user remains on Recover without reload given device is disconnected
17 changes: 7 additions & 10 deletions apps/ledger-live-desktop/src/renderer/screens/recover/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,13 @@ export default function RecoverPlayer({
...params,
...queryParams,
}),
[
theme,
locale,
availableOnDesktop,
device?.modelId,
state?.deviceId,
currency,
params,
queryParams,
],
/**
* deviceModelId is purposely ignored from dependencies.
*
* This is to ensure the WebRecoverPlayer is not reloaded given the user disconnects their cable.
*/
// eslint-disable-next-line react-hooks/exhaustive-deps
[theme, locale, availableOnDesktop, state?.deviceId, currency, params, queryParams],
);

return manifest ? (
Expand Down

0 comments on commit d4b897f

Please sign in to comment.