From a5fa49e77d7d0f8d906fc372f681dfcfb0e3adc3 Mon Sep 17 00:00:00 2001 From: mortezaei Date: Thu, 27 Aug 2026 10:33:14 +0330 Subject: [PATCH] fix image --- src/app/new-match/new-match-client.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app/new-match/new-match-client.tsx b/src/app/new-match/new-match-client.tsx index 8f52cd7..299f9d7 100644 --- a/src/app/new-match/new-match-client.tsx +++ b/src/app/new-match/new-match-client.tsx @@ -605,6 +605,12 @@ export default function NewMatchClient() { const matchSummary = profile?.match_summary ?? null; const matchDisplay = useMatchSummaryDisplay(matchSummary, t); + const isCandidateFemale = + matchSummary?.gender === "female" || profile?.gender === "male"; + const candidateAvatarSrc = isCandidateFemale + ? "/assets/images/female_avatar.svg" + : "/assets/images/Group 1597880481.png"; + if (typeof window !== "undefined") { if (!matchSummary && !isLoading && !isRedirecting) { console.warn( @@ -786,11 +792,7 @@ export default function NewMatchClient() {