diff --git a/.changeset/gorgeous-ways-exercise.md b/.changeset/gorgeous-ways-exercise.md
new file mode 100644
index 000000000000..1c41a786b484
--- /dev/null
+++ b/.changeset/gorgeous-ways-exercise.md
@@ -0,0 +1,5 @@
+---
+"live-mobile": patch
+---
+
+Fix navigation on Drawer when AlreadySecuredOtherSeed error
diff --git a/apps/ledger-live-mobile/src/newArch/features/WalletSync/hooks/useFollowInstructionDrawer.ts b/apps/ledger-live-mobile/src/newArch/features/WalletSync/hooks/useFollowInstructionDrawer.ts
index 07cf1fbfeec1..a6939569554b 100644
--- a/apps/ledger-live-mobile/src/newArch/features/WalletSync/hooks/useFollowInstructionDrawer.ts
+++ b/apps/ledger-live-mobile/src/newArch/features/WalletSync/hooks/useFollowInstructionDrawer.ts
@@ -9,7 +9,7 @@ import { useDestroyTrustchain } from "./useDestroyTrustchain";
export enum SceneKind {
DeviceInstructions,
Loader,
- WrongSeedError,
+ ConfirmDeleteWrongSeedError,
KeyError,
UnbackedError,
GenericError,
@@ -19,7 +19,7 @@ export enum SceneKind {
type Scene =
| { kind: SceneKind.DeviceInstructions; device: Device }
| { kind: SceneKind.Loader }
- | { kind: SceneKind.WrongSeedError }
+ | { kind: SceneKind.ConfirmDeleteWrongSeedError }
| { kind: SceneKind.KeyError }
| { kind: SceneKind.AlreadySecuredSameSeed }
| { kind: SceneKind.AlreadySecuredOtherSeed }
@@ -30,7 +30,7 @@ export type DrawerProps = {
scene: Scene;
retry: () => void;
goToDelete: () => void;
- backToKeyError: () => void;
+ backToWrongSeedError: () => void;
confirmDeleteKey: () => void;
};
@@ -49,11 +49,11 @@ export function useFollowInstructionDrawer(
}, []); // eslint-disable-line react-hooks/exhaustive-deps
const goToDelete = useCallback(() => {
- setScene({ kind: SceneKind.WrongSeedError });
+ setScene({ kind: SceneKind.ConfirmDeleteWrongSeedError });
}, []);
- const backToKeyError = useCallback(() => {
- setScene({ kind: SceneKind.KeyError });
+ const backToWrongSeedError = useCallback(() => {
+ setScene({ kind: SceneKind.AlreadySecuredOtherSeed });
}, []);
const confirmDeleteKey = useCallback(async () => {
@@ -65,5 +65,5 @@ export function useFollowInstructionDrawer(
run(setScene);
}, deps); // eslint-disable-line react-hooks/exhaustive-deps
- return { scene, retry, goToDelete, backToKeyError, confirmDeleteKey };
+ return { scene, retry, goToDelete, backToWrongSeedError, confirmDeleteKey };
}
diff --git a/apps/ledger-live-mobile/src/newArch/features/WalletSync/screens/FollowInstructions/index.tsx b/apps/ledger-live-mobile/src/newArch/features/WalletSync/screens/FollowInstructions/index.tsx
index 27be1d761236..ab99c31b7f67 100644
--- a/apps/ledger-live-mobile/src/newArch/features/WalletSync/screens/FollowInstructions/index.tsx
+++ b/apps/ledger-live-mobile/src/newArch/features/WalletSync/screens/FollowInstructions/index.tsx
@@ -28,7 +28,7 @@ const GenericFollowInstructionsDrawer = ({
handleClose,
scene,
goToDelete,
- backToKeyError,
+ backToWrongSeedError,
confirmDeleteKey,
retry,
}: Props) => {
@@ -47,8 +47,10 @@ const GenericFollowInstructionsDrawer = ({
);
- case SceneKind.WrongSeedError:
- return ;
+ case SceneKind.ConfirmDeleteWrongSeedError:
+ return (
+
+ );
case SceneKind.KeyError:
return (