myheats

Live heats, scoring and leaderboard for sport events
git clone https://git.in0rdr.ch/myheats.git
Log | Files | Refs | Pull requests | README | LICENSE

commit 2dc264ed0d6faad8aa6dec910dffb8be1840b2ce
parent ddf659b060a83def4099ec694d02ab5af2a6f70d
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Sun,  6 Oct 2024 22:26:07 +0200

fix: athlete birthday display

Diffstat:
Msrc/frontend/Athletes.jsx | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontend/Athletes.jsx b/src/frontend/Athletes.jsx @@ -120,7 +120,7 @@ function AthleteForm({session}) { <td data-title='Start Nr.' className='right'>{a.nr}</td> <td data-title='Firstname'>{a.firstname}</td> <td data-title='Lastname'>{a.lastname}</td> - <td data-title='Birthday'>{new Date(a.birthday).toLocaleDateString(locale, dateOptions)}</td> + <td data-title='Birthday'>{a.birthday ? new Date(a.birthday).toLocaleDateString(locale, dateOptions) : ''}</td> <td data-title='School'>{a.school}</td> <td><button onClick={e => deleteAthlete(e, a.id, a.firstname, a.lastname, session)}>&ndash; del</button></td> </tr>