Skip to content

Commit

Permalink
[Fix] #244 - 앰플리튜드 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongdung-eo committed Mar 20, 2024
1 parent 1dcfda4 commit 3269752
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ final class AchievementViewController: UIViewController, AchievementViewModelPre
super.viewWillAppear(animated)

viewWillAppearSubject.send(Date())
AmplitudeAnalyticsService.shared.send(event: AnalyticsEvent.Achieve.viewAccomplish)
}

override func viewDidLoad() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ final class AchievementViewModelImpl: AchievementViewModel {
}
.store(in: &cancelBag)

input.viewWillAppearSubject
.sink { _ in
AmplitudeAnalyticsService.shared.send(event: AnalyticsEvent.Achieve.viewAccomplish)
}
.store(in: &cancelBag)

input.calendarCellTapped
.filter { [weak self] date -> Bool in
guard let percentage = self?.dataSource.value[date.formattedString()] else {
Expand Down

0 comments on commit 3269752

Please sign in to comment.