Skip to content

Commit

Permalink
[Chore] sopt-makers#159 - 코드리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
0inn committed Apr 19, 2023
1 parent be51ed2 commit a01c3c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ public class AttendanceVC: UIViewController, AttendanceViewControllable {
self.bindViewModels()
self.setObserver()
}

public override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)

NotificationCenter.default.removeObserver(self)
}
}

// MARK: - UI & Layouts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ extension ShowAttendanceVC {
}

/// 하단 출석하기 버튼 (비)활성화
private func setAttendanceButton(isEnabled: Bool, title: String? = "") {
private func setAttendanceButton(isEnabled: Bool, title: String? = nil) {
attendanceButton.isEnabled = isEnabled
attendanceButton.setTitle(title, for: .normal)
}
Expand Down

0 comments on commit a01c3c5

Please sign in to comment.