|
|
@ -605,6 +605,12 @@ export default function NewMatchClient() { |
|
|
const matchSummary = profile?.match_summary ?? null; |
|
|
const matchSummary = profile?.match_summary ?? null; |
|
|
const matchDisplay = useMatchSummaryDisplay(matchSummary, t); |
|
|
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 (typeof window !== "undefined") { |
|
|
if (!matchSummary && !isLoading && !isRedirecting) { |
|
|
if (!matchSummary && !isLoading && !isRedirecting) { |
|
|
console.warn( |
|
|
console.warn( |
|
|
@ -786,11 +792,7 @@ export default function NewMatchClient() { |
|
|
<div className="relative -mt-[38px] mx-auto w-[72px] h-[72px] rounded-full p-[3px] bg-white shadow-[0_4px_12px_rgba(0,0,0,0.08)] flex items-center justify-center z-10"> |
|
|
<div className="relative -mt-[38px] mx-auto w-[72px] h-[72px] rounded-full p-[3px] bg-white shadow-[0_4px_12px_rgba(0,0,0,0.08)] flex items-center justify-center z-10"> |
|
|
<div className="w-full h-full rounded-full overflow-hidden bg-[#F0445B] flex items-center justify-center"> |
|
|
<div className="w-full h-full rounded-full overflow-hidden bg-[#F0445B] flex items-center justify-center"> |
|
|
<Image |
|
|
<Image |
|
|
src={ |
|
|
|
|
|
isMale |
|
|
|
|
|
? "/assets/images/female_avatar.svg" |
|
|
|
|
|
: "/assets/images/Avatar Image.png" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
src={candidateAvatarSrc} |
|
|
width={68} |
|
|
width={68} |
|
|
height={68} |
|
|
height={68} |
|
|
alt="candidate avatar" |
|
|
alt="candidate avatar" |
|
|
|