Add how many came include company
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
dvirlabs 2026-04-03 17:48:06 +03:00
parent 6eeda76d63
commit 4c3660c9f9

View File

@ -374,6 +374,9 @@ function GuestList({ eventId, onBack, onShowMembers }) {
confirmed: guests.filter(g => g.rsvp_status === 'confirmed').length,
declined: guests.filter(g => g.rsvp_status === 'declined').length,
invited: guests.filter(g => g.rsvp_status === 'invited').length,
totalCompany: guests
.filter(g => g.rsvp_status === 'confirmed')
.reduce((sum, g) => sum + (g.companion_count > 0 ? g.companion_count : 1), 0),
}
const exportToExcel = () => {
@ -523,6 +526,10 @@ function GuestList({ eventId, onBack, onShowMembers }) {
<span className="stat-label">{he.invited}</span>
<span className="stat-value" style={{ color: 'var(--color-warning)' }}>{stats.invited}</span>
</div>
<div className="stat-card">
<span className="stat-label">סה"כ מגיעים</span>
<span className="stat-value" style={{ color: 'var(--color-primary)' }}>{stats.totalCompany}</span>
</div>
</div>
{showColumnSettings && (