Spacing issue with guest names

This commit is contained in:
Ryderjj89
2025-06-04 18:53:27 -04:00
parent 3af12b431b
commit becc530c18
2 changed files with 4 additions and 4 deletions

View File

@@ -945,9 +945,9 @@ const EventAdmin: React.FC = () => {
<TableCell> <TableCell>
{rsvp.bringing_guests === 'yes' ? {rsvp.bringing_guests === 'yes' ?
`${rsvp.guest_count || 0} (${Array.isArray(rsvp.guest_names) ? `${rsvp.guest_count || 0} (${Array.isArray(rsvp.guest_names) ?
rsvp.guest_names.join(', ') : rsvp.guest_names.map(name => name.trim()).join(', ') :
typeof rsvp.guest_names === 'string' ? typeof rsvp.guest_names === 'string' ?
rsvp.guest_names.replace(/\s+/g, ', ') : rsvp.guest_names.replace(/\s+/g, ', ').trim() :
'No names provided'})` : 'No names provided'})` :
'No' 'No'
} }

View File

@@ -293,9 +293,9 @@ const EventView: React.FC = () => {
<TableCell> <TableCell>
{rsvp.bringing_guests === 'yes' ? {rsvp.bringing_guests === 'yes' ?
`${rsvp.guest_count} (${Array.isArray(rsvp.guest_names) ? `${rsvp.guest_count} (${Array.isArray(rsvp.guest_names) ?
rsvp.guest_names.join(', ') : rsvp.guest_names.map(name => name.trim()).join(', ') :
typeof rsvp.guest_names === 'string' ? typeof rsvp.guest_names === 'string' ?
rsvp.guest_names.replace(/\s+/g, ', ') : rsvp.guest_names.replace(/\s+/g, ', ').trim() :
'No names provided'})` : 'No names provided'})` :
'No' 'No'
} }