diff options
author | Sebastian <sebasjm@gmail.com> | 2021-11-12 13:12:27 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-11-12 13:12:27 -0300 |
commit | 38b84bb8051db2f03b152d66c34a1cb4c8944a12 (patch) | |
tree | 1e7a23bacb5287a53da51f93faee8667292c56ee /packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSetup.tsx | |
parent | 377e78e8543b67c22798479fcf2d2f8d1dae5b28 (diff) | |
download | wallet-core-38b84bb8051db2f03b152d66c34a1cb4c8944a12.tar.xz |
fix #7059
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSetup.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSetup.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSetup.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSetup.tsx index 03725621c..19260c4ff 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSetup.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSetup.tsx @@ -26,6 +26,9 @@ export function AuthMethodQuestionSetup({ : !answerText ? "Add the answer to your question" : undefined; + function goNextIfNoErrors(): void { + if (!errors) addQuestionAuth(); + } return ( <AnastasisClientFrame hideNav title="Add Security Question"> <div> @@ -39,6 +42,7 @@ export function AuthMethodQuestionSetup({ <TextInput label="Security question" grabFocus + onConfirm={goNextIfNoErrors} placeholder="Your question" bind={[questionText, setQuestionText]} /> @@ -46,6 +50,7 @@ export function AuthMethodQuestionSetup({ <div> <TextInput label="Answer" + onConfirm={goNextIfNoErrors} placeholder="Your answer" bind={[answerText, setAnswerText]} /> |