From bfc6c3a7a6072c8df7d32120655d9f710d6eff3e Mon Sep 17 00:00:00 2001 From: Dominik Stumpf Date: Fri, 16 Aug 2024 11:01:51 +0200 Subject: [PATCH] fix: omit referredUserId from schema --- .../create-profile/(onboarding)/_components/StartProfile.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/(marketing)/create-profile/(onboarding)/_components/StartProfile.tsx b/src/app/(marketing)/create-profile/(onboarding)/_components/StartProfile.tsx index 975d2c165b..1255aef1bb 100644 --- a/src/app/(marketing)/create-profile/(onboarding)/_components/StartProfile.tsx +++ b/src/app/(marketing)/create-profile/(onboarding)/_components/StartProfile.tsx @@ -53,7 +53,9 @@ export const StartProfile: OnboardingChain = ({ chainData }) => { }, [farcasterProfile]) const form = useForm({ - resolver: zodResolver(schemas.ProfileCreationSchema), + resolver: zodResolver( + schemas.ProfileCreationSchema.omit({ referrerUserId: true }) + ), defaultValues: { name: "", username: "",