diff --git a/src/components/tools/DonationCreate.svelte b/src/components/tools/DonationCreate.svelte index 5a339884..9fa6cb81 100644 --- a/src/components/tools/DonationCreate.svelte +++ b/src/components/tools/DonationCreate.svelte @@ -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("#")) {