fix: display count not correct in link surveys (#929)

This commit is contained in:
Matti Nannt
2023-10-03 11:28:55 +02:00
committed by GitHub
parent 20ec6781e1
commit a8e0e7d3f2

View File

@@ -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);