Skip to content

Commit

Permalink
Fix(crm): Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
arimet committed Jul 26, 2024
1 parent ed38e78 commit 5b890f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/crm/src/contacts/ContactInputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 (
<Stack gap={4} p={1}>
Expand Down

0 comments on commit 5b890f9

Please sign in to comment.