mirror of
https://github.com/formbricks/formbricks.git
synced 2026-03-03 04:51:00 -06:00
fix: display count not correct in link surveys (#929)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user