From bbc1290982b83f6dc88281a8800f0de675aaf36d Mon Sep 17 00:00:00 2001 From: Tim Wilson Date: Fri, 15 Nov 2024 14:32:17 -0500 Subject: [PATCH] Fix mobile number input --- .../onboarding/onboarding-form.tsx | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/apps/web/app/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx b/apps/web/app/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx index dfef423a84..caace64310 100644 --- a/apps/web/app/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx +++ b/apps/web/app/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx @@ -49,6 +49,8 @@ export function OnboardingForm() { }, }); + const countryCode = COUNTRY_PHONE_CODES[watch("country")]; + return (
(required) -
- - +{COUNTRY_PHONE_CODES[watch("country")]} - +
+ {countryCode && ( + + +{countryCode} + + )}