mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 21:53:01 +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,
|
onValueChange = onValueChange,
|
||||||
keyboardOptions =
|
keyboardOptions =
|
||||||
KeyboardOptions(
|
KeyboardOptions(
|
||||||
autoCorrect = false,
|
autoCorrectEnabled = false,
|
||||||
keyboardType = KeyboardType.Password,
|
keyboardType = KeyboardType.Password,
|
||||||
imeAction = ImeAction.Go,
|
imeAction = ImeAction.Go,
|
||||||
),
|
),
|
||||||
|
@@ -129,7 +129,7 @@ fun SignUpPage(
|
|||||||
onValueChange = { displayName.value = it },
|
onValueChange = { displayName.value = it },
|
||||||
keyboardOptions =
|
keyboardOptions =
|
||||||
KeyboardOptions(
|
KeyboardOptions(
|
||||||
autoCorrect = false,
|
autoCorrectEnabled = false,
|
||||||
keyboardType = KeyboardType.Text,
|
keyboardType = KeyboardType.Text,
|
||||||
imeAction = ImeAction.Go,
|
imeAction = ImeAction.Go,
|
||||||
),
|
),
|
||||||
@@ -208,7 +208,7 @@ fun SignUpPage(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (displayName.value.text.isBlank()) {
|
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()) {
|
if (acceptedTerms.value && displayName.value.text.isNotBlank()) {
|
||||||
|
Reference in New Issue
Block a user