Skip to content

Commit

Permalink
misc: improve email list display
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Feb 2, 2024
1 parent 86ab21c commit c8091ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/components/customers/CustomerMainInfos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,7 @@ export const CustomerMainInfos = ({ loading, customer, onEdit }: CustomerMainInf
{email && (
<div>
<Typography variant="caption">{translate('text_626c0c301a16a600ea061479')}</Typography>
{email.split(',').map((mail) => (
<Typography key={`customer-email-${mail}`} color="textSecondary" noWrap>
{mail}
</Typography>
))}
<Typography color="textSecondary">{email.split(',').join(', ')}</Typography>
</div>
)}
{url && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/invoices/InvoiceCustomerInfos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const InvoiceCustomerInfos = memo(({ invoice }: InvoiceCustomerInfosProps
{translate('text_634687079be251fdb43833e3')}
</Typography>
<Typography variant="body" color="grey700">
{customer?.email}
{customer?.email.split(',').join(', ')}
</Typography>
</InfoLine>
)}
Expand Down

0 comments on commit c8091ca

Please sign in to comment.