Merge pull request #19 from Ryderjj89/dev

Spacing issue with guest names
This commit is contained in:
Joshua Ryder
2025-06-04 18:53:10 -04:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -945,9 +945,9 @@ const EventAdmin: React.FC = () => {
<TableCell>
{rsvp.bringing_guests === 'yes' ?
`${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' ?
rsvp.guest_names.replace(/\s+/g, ', ') :
rsvp.guest_names.replace(/\s+/g, ', ').trim() :
'No names provided'})` :
'No'
}

View File

@@ -293,9 +293,9 @@ const EventView: React.FC = () => {
<TableCell>
{rsvp.bringing_guests === 'yes' ?
`${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' ?
rsvp.guest_names.replace(/\s+/g, ', ') :
rsvp.guest_names.replace(/\s+/g, ', ').trim() :
'No names provided'})` :
'No'
}