reset hasWarned state on edit

This commit is contained in:
Hailey
2024-09-19 12:10:13 -07:00
parent de0bf69d7a
commit 3e1debc557
+3
View File
@@ -174,6 +174,9 @@ export function StepInfo({
testID="emailInput" testID="emailInput"
onChangeText={value => { onChangeText={value => {
emailValueRef.current = value.trim() emailValueRef.current = value.trim()
if (hasWarnedEmail) {
setHasWarnedEmail(false)
}
}} }}
label={_(msg`Enter your email address`)} label={_(msg`Enter your email address`)}
defaultValue={state.email} defaultValue={state.email}