From 31a400158aaf4ac080a85dfc8b4d6a394434b59d Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Tue, 9 Sep 2025 16:58:07 +0200 Subject: [PATCH] Do not render your own profile in Profiles --- web/components/profile-grid.tsx | 42 ++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/web/components/profile-grid.tsx b/web/components/profile-grid.tsx index ed2a4890..a672a11a 100644 --- a/web/components/profile-grid.tsx +++ b/web/components/profile-grid.tsx @@ -9,6 +9,9 @@ import {JSONContent} from "@tiptap/core"; import {Content} from "web/components/widgets/editor"; import React from "react"; import Link from "next/link"; +import {Row} from "web/components/layout/row"; +import {CompatibleBadge} from "web/components/widgets/compatible-badge"; +import {useUser} from "web/hooks/use-user"; export const ProfileGrid = (props: { lovers: Lover[] @@ -29,6 +32,8 @@ export const ProfileGrid = (props: { refreshStars, } = props + const user = useUser() + return (
- {lovers.map((lover) => ( + {lovers + .filter((lover) => lover.user_id !== user?.id) + .map((lover) => ( */} {/*)}*/} - {/**/} - {/* {currentUser ? (*/} - {/* */} - {/* ) : (*/} - {/*
*/} - {/* )}*/} - {/* {compatibilityScore && (*/} - {/* */} - {/* )}*/} - {/**/} + + {/* {currentUser ? (*/} + {/* */} + {/* ) : (*/} + {/*
*/} + {/* )}*/} + {compatibilityScore && ( + + )} +