Skip to content

Commit

Permalink
fix: recover to support all devices but LNS (#7539)
Browse files Browse the repository at this point in the history
  • Loading branch information
cksanders committed Aug 8, 2024
1 parent 2830ed4 commit 9581686
Show file tree
Hide file tree
Showing 8 changed files with 2,617 additions and 12,882 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-apples-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Fix Recover support to include LSP for Restore
4 changes: 3 additions & 1 deletion apps/ledger-live-desktop/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ src/renderer/families/generated.ts
analytics.min.js
src/renderer/animations/**/*.json
src/renderer/components/Onboarding/Screens/Tutorial/assets/animations/**/*.json
tests/artifacts
tests/artifacts
tests/**/*-snapshots/

2 changes: 1 addition & 1 deletion apps/ledger-live-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"lint:ci": "zx scripts/ci-lint.mjs",
"lint:fix": "eslint src tools static tests --ext .js,.jsx,.json,.ts,.tsx --fix",
"prettier": "prettier --write \"{src,tools,tests}/**/*.{js,jsx,json,ts,tsx}\"",
"prettier:check": "prettier -c \"{src,tools}/**/*.{js,jsx,json,ts,tsx}\"",
"prettier:check": "prettier -c \"{src,tools,tests}/**/*.{js,jsx,json,ts,tsx}\"",
"preinstall-deps": "rimraf node_modules/paralleljs/package.json",
"install-deps": "electron-builder install-app-deps",
"postinstall": "node ./scripts/post-install.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,11 @@ export function SelectUseCase({ setUseCase, setOpenedPedagogyModal }: Props) {
onClick={() => {
track("Onboarding - Restore With Recover");

if (
deviceModelId &&
[DeviceModelId.nanoX, DeviceModelId.stax].includes(deviceModelId)
) {
if (deviceModelId === DeviceModelId.nanoS) {
dispatch(openModal("MODAL_PROTECT_DISCOVER", undefined));
} else {
setUseCase(UseCase.recover);
history.push(`/onboarding/${UseCase.recover}/${ScreenId.pairMyNano}`);
} else {
dispatch(openModal("MODAL_PROTECT_DISCOVER", undefined));
}
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"accounts": [],
"countervalues": {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"accounts": [],
"countervalues": {}
}
}
}
Loading

0 comments on commit 9581686

Please sign in to comment.