Skip to content

Commit

Permalink
Update signupLogic.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
zlwaterfield committed Mar 27, 2024
1 parent 57f109e commit a198439
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { urlToAction } from 'kea-router'
import api from 'lib/api'
import { CLOUD_HOSTNAMES, FEATURE_FLAGS } from 'lib/constants'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import posthog from 'posthog-js'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
import { urls } from 'scenes/urls'

Expand Down Expand Up @@ -96,6 +97,9 @@ export const signupLogic = kea<signupLogicType>([
last_name: payload.name.split(' ')[1] || undefined,
organization_name: payload.organization_name || undefined,
})
if (!payload.organization_name) {
posthog.capture('sign up organization name not provided')
}
location.href = res.redirect_url || '/'
} catch (e) {
actions.setSignupPanel2ManualErrors({
Expand Down

0 comments on commit a198439

Please sign in to comment.