Spacing issue with guest names
This commit is contained in:
@@ -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'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user