mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-18 05:41:56 +01:00
Fixes error message for the signup page when the display name is blank
This commit is contained in:
parent
924baf0de3
commit
c083295f6a
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user