diff --git a/src/Main.tsx b/src/Main.tsx index 50a361a..6ac42dd 100644 --- a/src/Main.tsx +++ b/src/Main.tsx @@ -273,6 +273,14 @@ const Main = () => { setStep(Step.Discovery); } + const cancelFactoryReset = () => { + if (walletKey.current) { + setStep(Step.Home); + } else { + setStep(Step.Discovery); + } + } + const pinDisplayCounter = () => { return pinCounter == PIN_MAX_RETRY ? -1 : pinCounter; } @@ -294,7 +302,7 @@ const Main = () => { {step == Step.LoadSuccess && } {step == Step.Authentication && } {step == Step.Home && } - {step == Step.FactoryReset && } + {step == Step.FactoryReset && } );