diff --git a/apps/web/components/eventtype/EventSetupTab.tsx b/apps/web/components/eventtype/EventSetupTab.tsx index d5df1e89b7..56fb4ab934 100644 --- a/apps/web/components/eventtype/EventSetupTab.tsx +++ b/apps/web/components/eventtype/EventSetupTab.tsx @@ -318,7 +318,7 @@ export const EventSetupTab = ( /> void; }; -function BasePhoneInput({ name, className = "", onChange, ...rest }: PhoneInputProps) { - useEffect(() => { - if (!rest.value) { - return; - } - const formattedValue = rest.value.trim().replace(/^\+?/, "+"); - onChange(formattedValue); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); - +function BasePhoneInput({ name, className = "", onChange, value, ...rest }: PhoneInputProps) { const defaultCountry = useDefaultCountry(); + return (