event payload updated

This commit is contained in:
LAKHAN BAHETI 2024-05-24 13:25:42 +05:30
parent dadb4415c7
commit 1ae0e1ae5f
3 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ export const AuthUniqueCodeForm: React.FC<TAuthUniqueCodeForm> = (props) => {
setIsSubmitting(true);
captureEvent(CODE_VERIFIED, {
state: "SUCCESS",
first_time: isExistingEmail,
first_time: !isExistingEmail,
});
}}
onError={() => setIsSubmitting(false)}

View File

@ -66,7 +66,7 @@ export const CreateWorkspace: React.FC<Props> = (props) => {
captureWorkspaceEvent({
eventName: WORKSPACE_CREATED,
payload: {
workspace_id: res.id,
...res,
state: "SUCCESS",
first_time: true,
element: E_ONBOARDING,

View File

@ -13,7 +13,7 @@ import { PasswordStrengthMeter } from "@/components/account";
import { UserImageUploadModal } from "@/components/core";
import { OnboardingHeader, SwitchAccountDropdown } from "@/components/onboarding";
// constants
import { E_ONBOARDING, USER_DETAILS, E_ONBOARDING_STEP_1,E_ONBOARDING_STEP_2 } from "@/constants/event-tracker";
import { USER_DETAILS, E_ONBOARDING_STEP_1, E_ONBOARDING_STEP_2 } from "@/constants/event-tracker";
// helpers
import { getPasswordStrength } from "@/helpers/password.helper";
// hooks