Merged in fix/SW-3115-form-tracking-changes (pull request #2470)
fix(SW-3115): add form complete tracking and removed input error tracking * fix(SW-3115): add form complete tracking and removed input error tracking Approved-by: Bianca Widstam
This commit is contained in:
committed by
Bianca Widstam
parent
86bd3fcea3
commit
d272cd03ce
@@ -96,11 +96,12 @@ export default function SignupForm({ title }: SignUpFormProps) {
|
||||
|
||||
const { control, subscribe } = methods
|
||||
|
||||
useFormTracking("signup", subscribe, control)
|
||||
const { trackFormSubmit } = useFormTracking("signup", subscribe, control)
|
||||
|
||||
async function onSubmit(data: SignUpSchema) {
|
||||
const phoneNumber = formatPhoneNumber(data.phoneNumber, data.phoneNumberCC)
|
||||
signup.mutate({ ...data, phoneNumber, language: lang })
|
||||
trackFormSubmit()
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user