refactor: extract biometrics conditional to constant

This commit is contained in:
Aman Harwara
2022-10-28 17:11:37 +05:30
parent 02ad46147d
commit 9ac5bd0c27

View File

@@ -42,7 +42,9 @@ const ChallengeModalPrompt: FunctionComponent<Props> = ({
}
}
if (typeof values[prompt.id].value === 'boolean') {
const hasUserAlreadyInteracted = typeof values[prompt.id].value === 'boolean'
if (hasUserAlreadyInteracted) {
return
}