Skip to content

Commit

Permalink
fix: address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
shafqat-muneer committed Jan 23, 2025
1 parent ce763d3 commit aba32c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ public struct ResponsesView: View {
Task {
if await viewModel.getResponsesData(commentID: commentID, parentComment: parentComment, page: 1) {
viewModel.trackDiscussionResponseViewed(
courseID: viewModel.courseID,
threadID: viewModel.postComments?.threadID ?? "",
responseID: parentComment.commentID
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,11 @@ public class ResponsesViewModel: BaseResponsesViewModel, ObservableObject {
}

func trackDiscussionResponseViewed(
courseID: String,
threadID: String,
responseID: String
) {
analytics?.discussionResponseViewed(
courseID: courseID,
threadID: threadID,
threadID: postComments?.threadID ?? "",
responseID: responseID
)
}
Expand Down

0 comments on commit aba32c4

Please sign in to comment.