Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
chore: don't send error analytics in combination (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedbashir authored Mar 25, 2024
1 parent 7b3be0c commit 252c6c5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Source/CourseUpgradeHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,10 @@ class CourseUpgradeHelper: NSObject {
environment?.analytics.trackCourseUpgradePaymentError(name: .CourseUpgradePaymentError, biName: .CourseUpgradePaymentError, courseID: courseID ?? "", blockID: blockID, pacing: pacing ?? "", coursePrice: localizedCoursePrice ?? "", screen: screen, paymentError: upgradeHadler.formattedError)
}
}

environment?.analytics.trackCourseUpgradeError(courseID: courseID ?? "", blockID: blockID, pacing: pacing ?? "", coursePrice: localizedCoursePrice ?? "", screen: screen, upgradeError: upgradeHadler.formattedError, flowType: upgradeHadler.upgradeMode.rawValue)

else {
environment?.analytics.trackCourseUpgradeError(courseID: courseID ?? "", blockID: blockID, pacing: pacing ?? "", coursePrice: localizedCoursePrice ?? "", screen: screen, upgradeError: upgradeHadler.formattedError, flowType: upgradeHadler.upgradeMode.rawValue)
}

removeLoader(success: false, removeView: type != .verifyReceiptError)
break
}
Expand Down

0 comments on commit 252c6c5

Please sign in to comment.