Scheduling infrastructure for absolutely everyone.
fix: [Hotfix]No phone number is valid (#9258)
Hariom Balharab1019d6babd8
diff --git a/packages/ui/form/PhoneInput.tsx b/packages/ui/form/PhoneInput.tsxindex 91656f576a1..59466430b6f 100644--- a/packages/ui/form/PhoneInput.tsx+++ b/packages/ui/form/PhoneInput.tsx@@ -30,7 +30,9 @@ function BasePhoneInput({ name, className = "", onChange, ...rest }: PhoneInputPrequired: rest.required,placeholder: rest.placeholder,}}- onChange={(value) => onChange(value)}+ onChange={(value) => {+ onChange("+" + value);+ }}containerClass={classNames("hover:border-emphasis dark:focus:border-emphasis border-default !bg-default rounded-md border focus-within:outline-none focus-within:ring-2 focus-within:ring-brand-default disabled:cursor-not-allowed",className@@ -63,7 +65,7 @@ const useDefaultCountry = () => {retry: false,onSuccess: (data) => {if (isSupportedCountry(data?.countryCode)) {- setDefaultCountry(data.countryCode);+ setDefaultCountry(data.countryCode.toLowerCase());}},});