Show all work in card and fix comma

This commit is contained in:
MartinBraquet
2026-01-30 14:23:32 +01:00
parent 8570f74a24
commit 70194541db

View File

@@ -176,9 +176,10 @@ function ProfilePreview(props: {
{seekingGenderText && <p>{seekingGenderText}.</p>}
{(!!profile.work?.length || profile.occupation_title) && <p>
{t("profile.optional.category.work", "Work")}:{" "}
{profile.occupation_title && profile.occupation_title + ", "}
{profile.work?.slice(0, 3).map(id => choicesIdsToLabels['work'][id]).join(', ')}
{(profile.work?.length || 0) > 3 && ',...'}
{profile.occupation_title}
{profile.occupation_title && !!profile.work?.length && (", ")}
{profile.work?.map(id => choicesIdsToLabels['work'][id]).join(', ')}
{/*{(profile.work?.length || 0) > 3 && ',...'}*/}
</p>}
{!!profile.interests?.length && <p>
{t("profile.optional.interests", "Interests")}:{" "}