fix: only auto-toggle biometrics prompt if user hasn't interacted
This commit is contained in:
@@ -42,11 +42,15 @@ const ChallengeModalPrompt: FunctionComponent<Props> = ({
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof values[prompt.id].value === 'boolean') {
|
||||
return
|
||||
}
|
||||
|
||||
biometricsButtonRef.current?.click()
|
||||
} else {
|
||||
inputRef.current?.focus()
|
||||
}
|
||||
}, [application, prompt.validation])
|
||||
}, [application, prompt.id, prompt.validation, values])
|
||||
|
||||
useEffect(() => {
|
||||
if (!application.isNativeMobileWeb()) {
|
||||
|
||||
Reference in New Issue
Block a user