Skip to content

Commit

Permalink
fix/#388 약속 수정 화면 로직 바로 넘어가는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
youz2me committed Sep 16, 2024
1 parent 5374f6f commit eb7bd24
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,14 @@ private extension ChooseContentViewController {
})

viewModel.isSuccess.bindOnMain(with: self) { owner, success in
let viewController = AddPromiseCompleteViewController(promiseID: self.viewModel.promiseID)

viewController.setupNavigationBarTitle(with: "약속 수정하기")
viewController.rootView.titleLabel.text = "약속이 수정되었어요!"

self.navigationController?.pushViewController(viewController, animated: true)
if success {
let viewController = AddPromiseCompleteViewController(promiseID: self.viewModel.promiseID)

viewController.setupNavigationBarTitle(with: "약속 수정하기")
viewController.rootView.titleLabel.text = "약속이 수정되었어요!"

self.navigationController?.pushViewController(viewController, animated: true)
}
}
}

Expand Down

0 comments on commit eb7bd24

Please sign in to comment.