Skip to content

Commit

Permalink
add text to selected option
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Jan 17, 2025
1 parent 7bca3bc commit 9e4df29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RevenueCatUI/CustomerCenter/Data/CustomerCenterAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ public enum CustomerCenterAction {
/// - Parameter refundRequestStatus: The status of the refund request
case refundRequestCompleted(_ refundRequestStatus: RefundRequestStatus)
/// An option of the feedback survey has been selected
/// - Parameter feedbackSurveyOptionId: The id of the feedback survey option selected
/// - Parameter feedbackSurveyOptionId: The id of the selected feedback survey option
case feedbackSurveyCompleted(_ feedbackSurveyOptionId: String)
/// An option of the feedback survey has been selected
/// - Parameter feedbackSurveyOptionId: The id of the selected feedback survey option
/// - Parameter defaultLanguageText: The displayed text of the selected feedback survey option (in English)
case feedbackSurveyCompleted(_ feedbackSurveyOptionId: String, defaultLanguageText: String)

}
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class FeedbackSurveyViewModel: ObservableObject {
if let customerCenterActionHandler = self.customerCenterActionHandler {
trackSurveyAnswerSubmitted(option: option, darkMode: darkMode, displayMode: displayMode)
customerCenterActionHandler(.feedbackSurveyCompleted(option.id))
// TODO: update to send English text, not title
customerCenterActionHandler(.feedbackSurveyCompleted(option.id, option.title))
}

if let promotionalOffer = option.promotionalOffer,
Expand Down

0 comments on commit 9e4df29

Please sign in to comment.