diff --git a/examples/crm/src/contacts/ContactInputs.tsx b/examples/crm/src/contacts/ContactInputs.tsx index dfe29c9a1f..ccd0d9d7e7 100644 --- a/examples/crm/src/contacts/ContactInputs.tsx +++ b/examples/crm/src/contacts/ContactInputs.tsx @@ -28,7 +28,7 @@ const isLinkedinUrl = (url: string) => { try { // Parse the URL to ensure it is valid const parsedUrl = new URL(url); - if (!parsedUrl.hostname.includes('linkedin.com')) { + if (!parsedUrl.hostname.startsWith('https://linkedin.com/')) { return 'URL must be from linkedin.com'; } } catch (e) { @@ -39,7 +39,7 @@ const isLinkedinUrl = (url: string) => { export const ContactInputs = () => { const theme = useTheme(); - const isMobile = useMediaQuery(theme.breakpoints.down('sm')); + const isMobile = useMediaQuery(theme.breakpoints.down('md')); return (