diff --git a/src/Components/Profile/OverlayItemProfile.tsx b/src/Components/Profile/OverlayItemProfile.tsx index a592af01..d8b2b0e7 100644 --- a/src/Components/Profile/OverlayItemProfile.tsx +++ b/src/Components/Profile/OverlayItemProfile.tsx @@ -411,13 +411,13 @@ export function OverlayItemProfile({ userType }: { userType: string }) { {item.layer?.itemType.relations && <> updateActiveTab(7)} /> -
+
{relations && relations.map(i => -
navigate('/item/' + i.id)}> +
navigate('/item/' + i.id)}>
diff --git a/src/Components/Templates/DialogModal.tsx b/src/Components/Templates/DialogModal.tsx index 803fa3a8..36d682f4 100644 --- a/src/Components/Templates/DialogModal.tsx +++ b/src/Components/Templates/DialogModal.tsx @@ -48,7 +48,7 @@ const DialogModal = ({ }, [isOpened]); - return ( + if(isOpened) return ( ); + else return (<>) }; export default DialogModal;