Skip to content

Commit f9f8e15

Browse files
committed
Analytics fix
1 parent 02f357f commit f9f8e15

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Modules/Sources/AnalyticsClient/Events/FavoritesEvent.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public enum FavoritesEvent: Event {
2121
case delete(Int)
2222

2323
case goToEnd(Int)
24-
case notify(Int, String)
24+
case notify(Int, Int, String)
2525
case notifyHatUpdate(Int)
2626

2727
case sortDismissed
@@ -64,8 +64,8 @@ public enum FavoritesEvent: Event {
6464
case let .goToEnd(id):
6565
return ["id": String(id)]
6666

67-
case let .notify(id, type):
68-
return ["id": String(id), "type": type]
67+
case let .notify(id, flag, type):
68+
return ["id": String(id), "flag": String(flag), "type": type]
6969

7070
case let .notifyHatUpdate(id):
7171
return ["id": String(id)]

Modules/Sources/FavoritesFeature/Analytics/FavoriteRootFeature+Analytics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extension FavoritesFeature {
5757
case .goToEnd:
5858
analytics.log(FavoritesEvent.goToEnd(id))
5959
case let .notify(flag, notify):
60-
analytics.log(FavoritesEvent.notify(id, notify.rawValue))
60+
analytics.log(FavoritesEvent.notify(id, flag, notify.rawValue))
6161
case let .notifyHatUpdate(flag):
6262
analytics.log(FavoritesEvent.notifyHatUpdate(flag))
6363
}

0 commit comments

Comments
 (0)