Skip to content

Commit

Permalink
refactor: Removed non necessary else block
Browse files Browse the repository at this point in the history
  • Loading branch information
Eezi committed Nov 21, 2024
1 parent ea13a3e commit d5cda20
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,19 @@ const AuthDetailsVerificationComponent = ({
})

if (securityQuestionKey) {
goToSecurityQuestionForm(
return goToSecurityQuestionForm(
nonce,
securityQuestionKey,
location.state.forgottenItem
)
} else {
goToRecoveryCodeEntryForm(
nonce,
location.state.forgottenItem,
phone,
email
)
}

goToRecoveryCodeEntryForm(
nonce,
location.state.forgottenItem,
phone,
email
)
} catch (err) {
setError(true)
setErrorMessage(
Expand Down

0 comments on commit d5cda20

Please sign in to comment.