Skip to content

Commit

Permalink
and a default
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Sep 5, 2024
1 parent 03bfa92 commit 0056621
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/posthog-surveys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export class PostHogSurveys {
private _canActivateRepeatedly(survey: Survey) {
if (isNullish(assignableWindow.__PosthogExtensions__?.canActivateRepeatedly)) {
logger.warn(LOGGER_PREFIX, 'canActivateRepeatedly is not defined, must init before calling')
return false // TODO does it make sense to have a default here?
}
return assignableWindow.__PosthogExtensions__.canActivateRepeatedly(survey)
}
Expand Down

0 comments on commit 0056621

Please sign in to comment.