diff --git a/RevenueCatUI/CustomerCenter/Data/CustomerCenterAction.swift b/RevenueCatUI/CustomerCenter/Data/CustomerCenterAction.swift index 03df8ba062..3ede218da5 100644 --- a/RevenueCatUI/CustomerCenter/Data/CustomerCenterAction.swift +++ b/RevenueCatUI/CustomerCenter/Data/CustomerCenterAction.swift @@ -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) } diff --git a/RevenueCatUI/CustomerCenter/ViewModels/FeedbackSurveyViewModel.swift b/RevenueCatUI/CustomerCenter/ViewModels/FeedbackSurveyViewModel.swift index a49feeb1f8..8015d08b50 100644 --- a/RevenueCatUI/CustomerCenter/ViewModels/FeedbackSurveyViewModel.swift +++ b/RevenueCatUI/CustomerCenter/ViewModels/FeedbackSurveyViewModel.swift @@ -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,