Skip to content

Commit b955800

Browse files
committed
More fixes
1 parent c259c3b commit b955800

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/app-frontend/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<body>
1313
<div id="app"></div>
14-
<script src="https://tally.so/widgets/embed.js" defer></script>
14+
<script src="https://tally.so/widgets/embed.js" async></script>
1515
<script type="module" src="/src/main.js"></script>
1616
</body>
1717
</html>

apps/app-frontend/src/App.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ async function processPendingSurveys() {
419419
const surveyToShow = surveys.find(
420420
(survey) =>
421421
localStorage.getItem(`survey-${survey.id}-display`) === null &&
422+
survey.type === 'tally_app' &&
422423
((survey.condition === 'active_player' && isActivePlayer) ||
423424
(survey.assigned_users.includes(userId) && !survey.dismissed_users.includes(userId))),
424425
)
@@ -451,8 +452,8 @@ async function processPendingSurveys() {
451452
console.error('Error opening Tally popup:', e)
452453
}
453454
454-
console.info(`Found user survey to show with tally_id: ${tallyId}`)
455-
window.Tally.openPopup(tallyId, popupOptions)
455+
console.info(`Found user survey to show with tally_id: ${formId}`)
456+
window.Tally.openPopup(formId, popupOptions)
456457
} else {
457458
console.info('No user survey to show')
458459
}

0 commit comments

Comments
 (0)