Skip to content

Commit

Permalink
make link survey link optional (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyiy authored Dec 14, 2023
1 parent 8422689 commit 3e13700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensions/surveys/surveys-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,8 @@ export const createOpenTextOrLinkPopup = (
[`$survey_responded/${survey.id}`]: true,
},
})
if (surveyQuestionType === 'link') {
window.open(question.link || undefined)
if (surveyQuestionType === 'link' && question.link) {
window.open(question.link)
}
window.setTimeout(() => {
window.dispatchEvent(new Event('PHSurveySent'))
Expand Down

0 comments on commit 3e13700

Please sign in to comment.