fix(DonationCreate): remove duplicate spaces from getRunnerLabel
This commit is contained in:
parent
ca066aa7a7
commit
30a26ef3ed
@ -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("#")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user