Skip to content

Commit 67b9f15

Browse files
committed
tests
1 parent b66a661 commit 67b9f15

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Sources/FormbricksSDK/Manager/SurveyManager.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,14 @@ final class SurveyManager {
6363
/// Checks if there are any surveys to display, based in the track action, and if so, displays the first one.
6464
/// Handles the display percentage and the delay of the survey.
6565
func track(_ action: String) {
66-
print("first line survey manager's track: ")
67-
print(isShowingSurvey)
68-
6966
guard !isShowingSurvey else { return }
7067

71-
print(environmentResponse)
72-
7368
let actionClasses = environmentResponse?.data.data.actionClasses ?? []
7469
let codeActionClasses = actionClasses.filter { $0.type == "code" }
7570
let actionClass = codeActionClasses.first { $0.key == action }
7671
let firstSurveyWithActionClass = filteredSurveys.first { survey in
7772
return survey.triggers?.contains(where: { $0.actionClass?.name == actionClass?.name }) ?? false
7873
}
79-
80-
print("found a survey with the action class having id: ", firstSurveyWithActionClass?.id)
8174

8275
// Display percentage
8376
let shouldDisplay = shouldDisplayBasedOnPercentage(firstSurveyWithActionClass?.displayPercentage)

0 commit comments

Comments
 (0)