Fixes error message for the signup page when the display name is blank

This commit is contained in:
Vitor Pamplona 2024-11-11 14:53:39 -05:00
parent 924baf0de3
commit c083295f6a
2 changed files with 3 additions and 3 deletions

View File

@ -467,7 +467,7 @@ fun PasswordField(
onValueChange = onValueChange,
keyboardOptions =
KeyboardOptions(
autoCorrect = false,
autoCorrectEnabled = false,
keyboardType = KeyboardType.Password,
imeAction = ImeAction.Go,
),

View File

@ -129,7 +129,7 @@ fun SignUpPage(
onValueChange = { displayName.value = it },
keyboardOptions =
KeyboardOptions(
autoCorrect = false,
autoCorrectEnabled = false,
keyboardType = KeyboardType.Text,
imeAction = ImeAction.Go,
),
@ -208,7 +208,7 @@ fun SignUpPage(
}
if (displayName.value.text.isBlank()) {
errorMessage = stringRes(context, R.string.key_is_required)
errorMessage = stringRes(context, R.string.name_is_required)
}
if (acceptedTerms.value && displayName.value.text.isNotBlank()) {