spacing in analytics

This commit is contained in:
Martin McKeaveney 2021-08-23 15:56:54 +01:00
parent 4dff1a34ac
commit 52b51e9873
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ const isFeedbackTimeElapsed = sinceDateStr => {
const feedbackMilliseconds = feedbackHours * 60 * 60 * 1000 const feedbackMilliseconds = feedbackHours * 60 * 60 * 1000
return Date.now() > sinceDate + feedbackMilliseconds return Date.now() > sinceDate + feedbackMilliseconds
} }
function submitFeedback(values) { function submitFeedback(values) {
if (!analyticsEnabled || !process.env.POSTHOG_TOKEN) return if (!analyticsEnabled || !process.env.POSTHOG_TOKEN) return
localStorage.setItem(FEEDBACK_SUBMITTED_KEY, Date.now()) localStorage.setItem(FEEDBACK_SUBMITTED_KEY, Date.now())