Skip to content

Commit

Permalink
fix/#367 약속 정보 뷰 수정하기 버튼 랜덤하게 보여지는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
youz2me committed Sep 10, 2024
1 parent 6d645af commit 677617e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ private extension PromiseViewController {
viewModel.promiseInfo.bindOnMain(with: self) { owner, info in
owner.setupNavigationBarTitle(with: info?.promiseName ?? "", isBorderHidden: true)

owner.promiseInfoViewController.rootView.editButton.isHidden = !(info?.isParticipant ?? false)
owner.setupPromiseEditButton(isHidden: !(info?.isParticipant ?? false))

owner.promiseInfoViewController.setupContent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ class PromiseInfoViewController: BaseViewController {

override func setupView() {
view.backgroundColor = .gray0

if let isParticipant = viewModel.promiseInfo.value?.isParticipant {
rootView.editButton.isHidden = isParticipant
}
}

override func setupDelegate() {
Expand Down Expand Up @@ -107,7 +111,6 @@ extension PromiseInfoViewController {

func setupBinding() {
viewModel.isPastDue.bindOnMain(with: self) { owner, isPastDue in

owner.rootView.editButton.isHidden = isPastDue
}

Expand Down

0 comments on commit 677617e

Please sign in to comment.