Skip to content

Commit

Permalink
Merge branch 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
live-github-bot[bot] committed May 16, 2024
2 parents 4d0b535 + c9ea4eb commit 5b983ff
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
12 changes: 12 additions & 0 deletions apps/ledger-live-desktop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# ledger-live-desktop

## 2.81.0

### Minor Changes

- [#6865](https://github.com/LedgerHQ/ledger-live/pull/6865) [`ac32e49`](https://github.com/LedgerHQ/ledger-live/commit/ac32e499cb1c1f9951a204ff5544e308415bf928) Thanks [@cksanders](https://github.com/cksanders)! - Fix LIVE-12571 where some users can't unlock LLD when they have set up a password

## 2.81.0-hotfix.0

### Minor Changes

- [#6865](https://github.com/LedgerHQ/ledger-live/pull/6865) [`ac32e49`](https://github.com/LedgerHQ/ledger-live/commit/ac32e499cb1c1f9951a204ff5544e308415bf928) Thanks [@cksanders](https://github.com/cksanders)! - Fix LIVE-12571 where some users can't unlock LLD when they have set up a password

## 2.80.0

### Minor Changes
Expand Down
6 changes: 6 additions & 0 deletions apps/ledger-live-desktop/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.81.0

### 🐛 Fix

We fixed a bug that caused the app to reject passwords.

# 2.80.0

### 🐛 Fixes
Expand Down
2 changes: 1 addition & 1 deletion apps/ledger-live-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "MIT",
"private": true,
"main": "./.webpack/main.bundle.js",
"version": "2.80.0",
"version": "2.81.0",
"scripts": {
"start:prod": "electron ./.webpack/main.bundle.js",
"start": "cross-env NODE_ENV=development node ./tools/main.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ import { useFeature } from "@ledgerhq/live-common/featureFlags/index";
import { saveSettings } from "~/renderer/actions/settings";
import { useDispatch, useSelector } from "react-redux";
import { useLocation } from "react-router-dom";
import { isLocked as isLockedSelector } from "~/renderer/reducers/application";
import { hasCompletedOnboardingSelector } from "~/renderer/reducers/settings";

const ONBOARDED_VIA_RECOVER_RESTORE_USER_PREFIX = "ONBOARDED_VIA_RECOVER_RESTORE_USER_";

export const useRecoverRestoreOnboarding = (seedPathStatus?: string) => {
const { pathname } = useLocation();
const dispatch = useDispatch();
const isLocked = useSelector(isLockedSelector);
const recoverServices = useFeature("protectServicesDesktop");
const recoverStoreId = recoverServices?.params?.protectId ?? "";
const hasCompletedOnboarding = useSelector(hasCompletedOnboardingSelector);
Expand All @@ -26,13 +28,14 @@ export const useRecoverRestoreOnboarding = (seedPathStatus?: string) => {
const hasCompletedOnboardingViaRestore = status === "true";

setOnboardedViaRecoverRestore(hasCompletedOnboardingViaRestore);

dispatch(
saveSettings({
hasCompletedOnboarding: onboardedViaRecoverRestore,
}),
);
}, [dispatch, onboardedViaRecoverRestore, recoverStoreId]);
if (!isLocked) {
dispatch(
saveSettings({
hasCompletedOnboarding: onboardedViaRecoverRestore,
}),
);
}
}, [dispatch, isLocked, onboardedViaRecoverRestore, recoverStoreId]);

useEffect(() => {
const userIsOnboardingOrSettingUp =
Expand Down

0 comments on commit 5b983ff

Please sign in to comment.