diff --git a/src/components/LinkTypeInput.tsx b/src/components/LinkTypeInput.tsx index fe1516a..acc39e5 100644 --- a/src/components/LinkTypeInput.tsx +++ b/src/components/LinkTypeInput.tsx @@ -53,13 +53,6 @@ export function LinkTypeInput({ const selectedType = linkTypes.find((type) => type.value === value) || linkTypes[0] - useEffect(() => { - // Make sure there's always a default value - if (!value) { - onChange(set('internal')) - } - }, [onChange, value]) - return ( link.type === export const isPhoneLink = (link: LinkValue): link is PhoneLink => link.type === 'phone' export const isCustomLink = (link: LinkValue): link is CustomLink => - !!link.type && !['internal', 'external', 'email', 'phone'].includes(link.type) + !['internal', 'external', 'email', 'phone'].includes(link.type)