diff --git a/src/frontend/src/flows/authenticate/index.ts b/src/frontend/src/flows/authenticate/index.ts index ac61408332..8295a87ca9 100644 --- a/src/frontend/src/flows/authenticate/index.ts +++ b/src/frontend/src/flows/authenticate/index.ts @@ -336,13 +336,7 @@ const initRecovery = () => { const recoverButton = document.getElementById( "recoverButton" ) as HTMLButtonElement; - recoverButton.onclick = () => { - const userNumber = readUserNumber(); - if (userNumber !== undefined) { - return useRecovery(userNumber); - } - toggleErrorMessage("userNumberInput", "invalidAnchorMessage", true); - }; + recoverButton.onclick = () => useRecovery(readUserNumber()); }; /**