Skip to content

Commit

Permalink
[Fix] 회원탈퇴 동작 안되는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eung7 committed Jan 15, 2024
1 parent 46d8027 commit acd0b55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public final class ProfileView: UIView {
self.setupConstraints()
self.bind()
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public final class SettingsAuthInfoViewReactor: Reactor, Stepper {
case .signoutDidRequested:
self.handleSignOut()
return .empty()

case .deleteAccountDidRequested:
return self.handleDeleteAccount()
.asObservable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private extension SettingsAuthInfoViewController {
self.present(signOutPopup, animated: false)
}
}

func presentDeleteAccountPopup() {
let description = NewAlertPopup.Description(
description: Typo.deleteAccountDescription,
Expand All @@ -209,7 +209,9 @@ private extension SettingsAuthInfoViewController {
identifier: PopupIdentifier.deleteAccount
)
deleteAccountPopup.modalPresentationStyle = .overFullScreen
deleteAccountPopup.delegate = self
deleteAccountPopup.accpetButtonCompletion = {
self.reactor?.action.onNext(.deleteAccountDidRequested)
}

DispatchQueue.main.async {
self.present(deleteAccountPopup, animated: false)
Expand Down

0 comments on commit acd0b55

Please sign in to comment.