diff --git a/src/Components/Profile/ContactInfo.tsx b/src/Components/Profile/ContactInfo.tsx index f693b331..65900401 100644 --- a/src/Components/Profile/ContactInfo.tsx +++ b/src/Components/Profile/ContactInfo.tsx @@ -60,9 +60,11 @@ const ContactInfo = ({ email, telephone, name, avatar, link }: { email: string, export default ContactInfo; const ConditionalLink = ({ url, children }) => { + let params = new URLSearchParams(window.location.search); + if (url) { return ( - + {children} ); diff --git a/src/Components/Profile/OverlayItemProfile.tsx b/src/Components/Profile/OverlayItemProfile.tsx index d8b2b0e7..f0ad9d19 100644 --- a/src/Components/Profile/OverlayItemProfile.tsx +++ b/src/Components/Profile/OverlayItemProfile.tsx @@ -289,6 +289,8 @@ export function OverlayItemProfile({ userType }: { userType: string }) { setTemplate(item.layer?.itemType.template || userType); }, [userType, item]) + + return ( <> {item && @@ -413,7 +415,7 @@ export function OverlayItemProfile({ userType }: { userType: string }) { updateActiveTab(7)} />