mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-25 18:11:15 +02:00
Fixes error message for the signup page when the display name is blank
This commit is contained in:
@@ -467,7 +467,7 @@ fun PasswordField(
|
||||
onValueChange = onValueChange,
|
||||
keyboardOptions =
|
||||
KeyboardOptions(
|
||||
autoCorrect = false,
|
||||
autoCorrectEnabled = false,
|
||||
keyboardType = KeyboardType.Password,
|
||||
imeAction = ImeAction.Go,
|
||||
),
|
||||
|
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user