fix(DonationCreate): remove duplicate spaces from getRunnerLabel

This commit is contained in:
Philipp Dormann 2025-05-20 01:06:42 +02:00
parent ca066aa7a7
commit 30a26ef3ed
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314

View File

@ -52,8 +52,9 @@
}
loadDonors();
const getRunnerLabel = (option) =>
option.firstname + " " + (option.middlename || "") + " " + option.lastname+" [#"+option.id+"]";
const getRunnerLabel = (option) => {
return [option.firstname,option.middlename,option.lastname].join(" ").replace(" "," ") + " [#"+option.id+"]";
}
const filterRunners = (label, filterText, option) => {
if (filterText.startsWith("#")) {