diff --git a/src/__tests__/extensions/surveys.js b/src/__tests__/extensions/surveys.js index bba4043c0..414f0060b 100644 --- a/src/__tests__/extensions/surveys.js +++ b/src/__tests__/extensions/surveys.js @@ -60,7 +60,7 @@ describe('survey display logic', () => { $survey_name: 'Test survey 1', sessionRecordingUrl: undefined, $set: { - '$survey_dismiss/testSurvey1': true, + '$survey_dismissed/testSurvey1': true, }, }) expect(localStorage.getItem(`seenSurvey_${mockSurveys[0].id}`)).toBe('true') diff --git a/src/extensions/surveys.ts b/src/extensions/surveys.ts index 540f6e1d1..970477ce3 100644 --- a/src/extensions/surveys.ts +++ b/src/extensions/surveys.ts @@ -384,7 +384,7 @@ export const createOpenTextOrLinkPopup = ( $survey_response: surveyQuestionType === 'open' ? e.target.survey.value : 'link clicked', sessionRecordingUrl: posthog.get_session_replay_url?.(), $set: { - [`$survey_response/${survey.id}`]: true, + [`$survey_responded/${survey.id}`]: true, }, }) if (surveyQuestionType === 'link') { @@ -461,7 +461,7 @@ export const addCancelListeners = ( $survey_id: surveyId, sessionRecordingUrl: posthog.get_session_replay_url?.(), $set: { - [`$survey_dismiss/${surveyId}`]: true, + [`$survey_dismissed/${surveyId}`]: true, }, }) })