Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: 이석찬 / Lee Sukchan <[email protected]>
  • Loading branch information
paul2126 and sukchan-0811 authored Oct 25, 2023
1 parent f947058 commit f2c0aeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fun SignupScreen(
ButtonUi(
text = stringResource(id = R.string.signup),
onClick = {
viewModel.signUp()
viewModel.signup(email)
},
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ class SignupViewModel @Inject internal constructor(
private val _uiState = MutableStateFlow(SignupUiState())
val uiState: StateFlow<SignupUiState> = _uiState.asStateFlow()

var emailInput by mutableStateOf("")
private set

var nicknameInput by mutableStateOf("")
private set

Expand Down Expand Up @@ -103,7 +100,7 @@ class SignupViewModel @Inject internal constructor(
passwordCheckInput = ""
}

fun signUp() {
fun signup(emailInput: String) {
if (nicknameInput.isBlank() || nicknameInput.length > Constants.MAXIMUM_NICKNAME_LENGTH) { // Check nickname
_uiState.update { currentState ->
currentState.copy(
Expand Down

0 comments on commit f2c0aeb

Please sign in to comment.