Skip to content

Commit

Permalink
sign up screen input field bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashraj254 committed Oct 2, 2023
1 parent d539e86 commit e50ec3d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ fun SignUpScreen(modifier: Modifier = Modifier,
contentDescription = null
)

val name = viewModel.name.collectAsState()
val email = viewModel.email.collectAsState()
val password = viewModel.password.collectAsState()

Expand All @@ -97,7 +98,7 @@ fun SignUpScreen(modifier: Modifier = Modifier,
IconTextInput(
leadingIcon = Icons.Filled.Person,
trailingIcon = Icons.Filled.Backspace,
value = email.value,
value = name.value,
placeholder = "Name",
onValueChange = {
viewModel.onNameChange(it)
Expand Down

0 comments on commit e50ec3d

Please sign in to comment.