Skip to content

Commit

Permalink
[Fix] #226 - 코드 리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongdung-eo committed Jan 28, 2024
1 parent 6b739f5 commit 37e1f6a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class HomeViewController: UIViewController {
private var current: Date?

private lazy var safeArea = self.view.safeAreaLayoutGuide
private var isSelected: Bool = false
private var didCloseButtonTap: Bool = false
private var didDeprecatedButtonTap: Bool { return KeychainUtil.isDeprecatedBtnClicked() }

// MARK: - UI Components
Expand All @@ -39,7 +39,7 @@ final class HomeViewController: UIViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

showPopup(isSelected: isSelected)
showPopup(isSelected: didCloseButtonTap)
AmplitudeAnalyticsService.shared.send(event: AnalyticsEvent.Home.viewHome)

dailyLoadData()
Expand Down Expand Up @@ -361,7 +361,7 @@ extension HomeViewController {
self.present(nextView, animated: true)

nextView.tapCloseButton = {
self.isSelected = true
self.didCloseButtonTap = true
AmplitudeAnalyticsService.shared.send(event: AnalyticsEvent.Login.clickAdModalClose(again: self.didDeprecatedButtonTap ? "yes": "no" ))
}
}
Expand Down

0 comments on commit 37e1f6a

Please sign in to comment.