회원탈퇴
- 소셜로그인 탈퇴 안내 문구 추가
This commit is contained in:
@@ -38,7 +38,7 @@ final class SignOutViewModel: ObservableObject {
|
||||
if validate() {
|
||||
isLoading = true
|
||||
let reason = reasonSelectedIndex == reasons.count - 1 ? self.reason : reasons[reasonSelectedIndex]
|
||||
repository.signOut(reason: reason, password: password)
|
||||
repository.signOut(reason: reason, password: password.trimmingCharacters(in: .whitespacesAndNewlines))
|
||||
.sink { result in
|
||||
switch result {
|
||||
case .finished:
|
||||
@@ -83,12 +83,6 @@ final class SignOutViewModel: ObservableObject {
|
||||
return false
|
||||
}
|
||||
|
||||
if password.isEmpty {
|
||||
errorMessage = "비밀번호를 입력해 주세요."
|
||||
isShowPopup = true
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user