Skip to content

Commit

Permalink
[chore] #173 닉네임 중복체크 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
t1nm1ksun committed Aug 17, 2024
1 parent ac8e6e5 commit 1803a7f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ class ProfileViewModel @Inject constructor(
setEvent(
ProfileContract.ProfileEvent.GetNicknameCheck(loadState = LoadState.Loading, nicknameValidateResult = TextFieldValidateResult.Basic)
)
getUserUseCase().onSuccess { profile ->
currentName = profile.name
if (currentState.profileType == ProfileType.EDIT) {
getUserUseCase().onSuccess { profile ->
currentName = profile.name
}
}
getNicknameCheckUseCase(name = name).onSuccess { code ->
when (code) {
Expand Down Expand Up @@ -170,7 +172,7 @@ class ProfileViewModel @Inject constructor(
Log.e("http image", error.message.toString())
}
}
Log.d("http image","image: ${editProfile.image}")
Log.d("http image", "image: ${editProfile.image}")
}

companion object {
Expand Down

0 comments on commit 1803a7f

Please sign in to comment.