From a8e0e7d3f2e90957dc05b150c6fa8b218ed160df Mon Sep 17 00:00:00 2001 From: Matti Nannt Date: Tue, 3 Oct 2023 11:28:55 +0200 Subject: [PATCH] fix: display count not correct in link surveys (#929) --- apps/web/app/s/[surveyId]/LinkSurvey.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/app/s/[surveyId]/LinkSurvey.tsx b/apps/web/app/s/[surveyId]/LinkSurvey.tsx index 53387bf789..3ea44c6f74 100644 --- a/apps/web/app/s/[surveyId]/LinkSurvey.tsx +++ b/apps/web/app/s/[surveyId]/LinkSurvey.tsx @@ -96,7 +96,7 @@ export default function LinkSurvey({ formbricksSignature={product.formbricksSignature} onDisplay={async () => { if (!isPreview) { - const { id } = await createDisplay({ surveyId: survey.id }, window?.location?.origin); + const { id } = await createDisplay({ surveyId: survey.id }, webAppUrl); const newSurveyState = surveyState.copy(); newSurveyState.updateDisplayId(id); setSurveyState(newSurveyState);