Skip to content

Commit d5bb2bf

Browse files
authored
fix: branding text (#24)
* fix: branding text * fix: sonarqube flag
1 parent 8a64229 commit d5bb2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FormbricksSDK/WebView/FormbricksViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ private class WebViewData {
9393

9494
init(environmentResponse: EnvironmentResponse, surveyId: String) {
9595
data["survey"] = environmentResponse.getSurveyJson(forSurveyId: surveyId)
96-
data["isBrandingEnabled"] = true
9796
data["appUrl"] = Formbricks.appUrl
9897
data["environmentId"] = Formbricks.environmentId
9998
data["contactId"] = Formbricks.userManager?.contactId
10099
data["isWebEnvironment"] = false
100+
data["isBrandingEnabled"] = environmentResponse.data.data.project.inAppSurveyBranding ?? true
101101

102102
let isMultiLangSurvey = environmentResponse.data.data.surveys?.first(where: { $0.id == surveyId })?.languages?.count ?? 0 > 1
103103

0 commit comments

Comments
 (0)