diff --git a/src/components/product-listing-form.tsx b/src/components/product-listing-form.tsx index 136bf91..862fa03 100644 --- a/src/components/product-listing-form.tsx +++ b/src/components/product-listing-form.tsx @@ -1955,7 +1955,6 @@ export function ProductListingForm({
[p.did, p])); return ( - - {team.map((member) => { - const profile = byDid.get(member.did); - const handle = validHandle(profile?.handle); - const name = - profile?.displayName?.trim() || (handle ? `@${handle}` : member.did); - const role = member.role?.trim(); - return ( - - - - {name} - - {role ? {role} : null} - - ); - })} + +
    + {team.map((member) => { + const profile = byDid.get(member.did); + const handle = validHandle(profile?.handle); + const handleLabel = handle ? `@${handle}` : null; + const name = + profile?.displayName?.trim() || handleLabel || member.did; + // Role when given; otherwise the handle, unless it is already the name. + const subtitle = + member.role?.trim() || (name === handleLabel ? null : handleLabel); + return ( +
  • + + + + {name} + + {subtitle ? ( + {subtitle} + ) : null} + +
  • + ); + })} +
); }