fix(DonationCreate): remove duplicate spaces from getRunnerLabel

This commit is contained in:
2025-05-20 01:06:42 +02:00
parent ca066aa7a7
commit 30a26ef3ed

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("#")) {